From 4cad646a7c16de893ad77f303385d246f9527cac Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Fri, 23 Apr 2021 16:54:48 -0500 Subject: [PATCH] Disable sleep/wake detection on android (#27) --- .../main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt index 1bc5439..b75f3bb 100644 --- a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt +++ b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt @@ -108,7 +108,8 @@ class NebulaVpnService : VpnService() { } registerNetworkCallback() - registerSleep() + //TODO: There is an open discussion around sleep killing tunnels or just changing mobile to tear down stale tunnels + //registerSleep() nebula!!.start() running = true