From 428ea596b0d3c90a426a18b1be8385813d5bb029 Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 20 Apr 2020 10:15:43 -0700 Subject: [PATCH] fix autobug: exceptions become RemoteException when crossing service boundary --- app/src/main/java/com/geeksville/mesh/service/MeshService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5fdec666a..0fb5d40fc 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt @@ -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) }