Commit 162d7151 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Indefinitely wait for the default server to be loaded

parent 6197d913
......@@ -229,7 +229,7 @@ class AppSettingsSharedPreferences(context: Context) : AppSettings, SimpleTypedP
shouldContain(BuildConfig.APPLICATION_ID)
}, cacheControl)
override var dnsServerConfig: DnsServerInformation<*> by cache(DnsServerInformationPreference("dns_server_config") {
AbstractTLSDnsHandle.waitUntilKnownServersArePopulated(500) { knownServers ->
AbstractTLSDnsHandle.waitUntilKnownServersArePopulated(-1) { knownServers ->
knownServers.getValue(9)
}
}, cacheControl)
......
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