aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/VPN
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-03 18:58:24 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-03 18:58:27 +0530
commit7c4992894b1acd951e7ba5aab78e5819cfb7b85d (patch)
tree345f55b5f56090cb0a64ef18496850ab1e011db9 /WireGuard/WireGuard/VPN
parentRevert "TunnelsManager: initialize observer on correct thread" (diff)
downloadwireguard-apple-7c4992894b1acd951e7ba5aab78e5819cfb7b85d.tar.xz
wireguard-apple-7c4992894b1acd951e7ba5aab78e5819cfb7b85d.zip
VPN: We should never get a status change to .disconnected if we're resolving endpoints
But we do, which we'll fix subsequently Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/VPN')
-rw-r--r--WireGuard/WireGuard/VPN/TunnelsManager.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/VPN/TunnelsManager.swift b/WireGuard/WireGuard/VPN/TunnelsManager.swift
index 2aa415a..a36d5d0 100644
--- a/WireGuard/WireGuard/VPN/TunnelsManager.swift
+++ b/WireGuard/WireGuard/VPN/TunnelsManager.swift
@@ -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)