treat radio not connected exception like a remote exception

pull/40/head
geeksville 2020-05-24 09:39:27 -07:00
rodzic 28023b8f42
commit 774ab65ece
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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