fix autobug: exceptions become RemoteException when crossing service boundary

pull/28/head
geeksville 2020-04-20 10:15:43 -07:00
rodzic 9b57d60432
commit 428ea596b0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -168,7 +168,7 @@ class MeshService : Service(), Logging {
destNum = if (sendLora) NODENUM_BROADCAST else myNodeNum,
wantResponse = sendLora
)
} catch (ex: RadioNotConnectedException) {
} catch (ex: RemoteException) { // Really a RadioNotConnected exception, but it has changed into this type via remoting
warn("Lost connection to radio, stopping location requests")
onConnectionChanged(ConnectionState.DEVICE_SLEEP)
}