diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt index ec2f1a19..37d84c22 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt @@ -29,7 +29,8 @@ class IpNeighbourMonitor private constructor() { if (!callbacks.remove(callback) || callbacks.isNotEmpty()) return val monitor = instance ?: return instance = null - monitor.monitor?.destroy() + val process = monitor.monitor + if (process != null) thread(TAG + "-killer") { process.destroy() } } /**