mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-17 13:28:01 -04:00
treat radio not connected exception like a remote exception
This commit is contained in:
@@ -192,6 +192,9 @@ class MeshService : Service(), Logging {
|
||||
} 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)
|
||||
} catch (ex: BLEException) { // Really a RadioNotConnected exception, but it has changed into this type via remoting
|
||||
warn("BLE exception, stopping location requests $ex")
|
||||
onConnectionChanged(ConnectionState.DEVICE_SLEEP)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user