From 303fb86aa6c36caa768e6303c6fa75de17204a31 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sun, 7 Jun 2020 22:39:57 -0700 Subject: [PATCH] oops - we want to compare aganst the old interface, not the new one --- .../java/com/geeksville/mesh/service/RadioInterfaceService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/service/RadioInterfaceService.kt b/app/src/main/java/com/geeksville/mesh/service/RadioInterfaceService.kt index a837bd4ab..2be3458de 100644 --- a/app/src/main/java/com/geeksville/mesh/service/RadioInterfaceService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/RadioInterfaceService.kt @@ -212,7 +212,7 @@ class RadioInterfaceService : Service(), Logging { receivedPacketsLog.close() // Don't broadcast disconnects if we were just using the nop device - if (radioIf != nopIf) + if (r != nopIf) onDisconnect(isPermanent = true) // Tell any clients we are now offline }