Unverified Commit 45a18699 authored by Mygod's avatar Mygod Committed by GitHub

Do not join scope on shutdown

Some threads might be blocked by local DNS resolving. This could cause shutting down unresponsive when local connectivity is loss (bad Wi-Fi/cellular network).
parent e8127920
......@@ -162,6 +162,5 @@ class LocalDnsServer(private val localResolver: suspend (String) -> Array<InetAd
suspend fun shutdown() {
job.cancel()
monitor.close()
job.join()
}
}
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