From 774ab65ece6f5c8b2c298d5626e4826d5cd123e3 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sun, 24 May 2020 09:39:27 -0700 Subject: [PATCH] treat radio not connected exception like a remote exception --- app/src/main/java/com/geeksville/mesh/service/MeshService.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt index 41d7257bd..1d50bf789 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt @@ -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) } } }