Complete request future if response is a ClientNotification

This commit is contained in:
DJ Holt
2024-09-28 21:43:18 -06:00
committed by Andre K
parent 94c40367f2
commit a358b8cb11

View File

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