Complete request future if response is a ClientNotification

pull/1275/head
DJ Holt 2024-09-28 21:43:18 -06:00 zatwierdzone przez Andre K
rodzic 94c40367f2
commit a358b8cb11
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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)
}
/**