From a358b8cb110436bf14003fbfddb02a32cfff7eb6 Mon Sep 17 00:00:00 2001 From: DJ Holt Date: Sat, 28 Sep 2024 21:43:18 -0600 Subject: [PATCH] Complete request future if response is a ClientNotification --- app/src/main/java/com/geeksville/mesh/service/MeshService.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt index 52dc68bc..4a11976f 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt @@ -1533,6 +1533,8 @@ class MeshService : Service(), Logging { private fun handleClientNotification(notification: MeshProtos.ClientNotification) { debug("Received clientNotification ${notification.toOneLineString()}") radioConfigRepository.setErrorMessage(notification.message) + // if the future for the originating request is still in the queue, complete as unsuccessful for now + queueResponse.remove(notification.replyId)?.complete(false) } /**