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
PublicAndroidApps
Nebulo
Commits
97cb0cfe
Commit
97cb0cfe
authored
Aug 11, 2021
by
Daniel Wolf
Browse files
Do not instantly show notification when resolve fails
parent
1cac3cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/service/DnsVpnService.kt
View file @
97cb0cfe
...
...
@@ -760,7 +760,9 @@ class DnsVpnService : VpnService(), Runnable, CoroutineScope {
serverConfig
.
forEachAddress
{
_
,
address
->
val
listener
=
address
.
addressCreator
.
whenResolveFinished
{
resolveException
,
resolveResult
->
if
(
resolveException
!=
null
)
{
showNoConnectionNotification
()
if
(
totalTries
>=
5
)
{
showNoConnectionNotification
()
}
if
(
resolveException
is
TimeoutException
||
resolveException
is
UnknownHostException
)
{
log
(
"Address resolve failed: $resolveException. Total tries $totalTries/70"
)
if
(
totalTries
<=
70
)
{
...
...
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