VPN: We should never get a status change to .disconnected if we're resolving endpoints

But we do, which we'll fix subsequently
This commit is contained in:
Roopesh Chander 2018-11-03 18:58:24 +05:30
parent 395e6fcdda
commit 6fd9e7f53a
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ class TunnelContainer: NSObject {
}
if (s.status == .resolvingEndpointDomains && connection.status == .disconnected) {
// Don't change to .inactive if we're still resolving endpoints
assert(false)
return
}
s.status = TunnelStatus(from: connection.status)