Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nathan OBrian
Nebulo
Commits
d23f373a
Commit
d23f373a
authored
Jan 10, 2021
by
Daniel Wolf
Browse files
Check more often if connections is currently bad
parent
325cbd6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/service/ConnectionWatchdog.kt
View file @
d23f373a
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment