Commit d23f373a authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Check more often if connections is currently bad

parent 325cbd6e
......@@ -60,7 +60,7 @@ class ConnectionWatchdog(private val trafficStats: TrafficStats,
}
private suspend fun checkConnection() {
delay(checkIntervalMs)
delay(if (measurementsWithBadConnection > 0) checkIntervalMs / 5 else checkIntervalMs)
log("Beginning connection check")
printMemInfo()
if(trafficStats.packetsReceivedFromDevice >= 15
......
Supports Markdown
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