fix autobug: exceptions become RemoteException when crossing service boundary

This commit is contained in:
geeksville 2020-04-20 10:15:43 -07:00
parent 9b57d60432
commit 428ea596b0

View file

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