Commit 4def4175 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Reduce watchdog invoke count

parent 823633a8
......@@ -45,7 +45,7 @@ class VpnWatchDog(private val onVpnDisconnected:() -> Unit,
}
private suspend fun checkConnection() {
delay(3000)
delay(30000)
log("Beginning VPN-check")
val networks = connectivityManager.allNetworks.toList().filterNotNull()
val isStillRunning = networks.any { connectivityManager.isVpnNetwork(it) } || networks.isEmpty()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment