diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2022-03-10 14:34:55 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-03-11 16:28:36 +0100 |
| commit | a59d57b39e898c2506edf3dca8fb31ff5dc25876 (patch) | |
| tree | 81409407b3da0b76a345c1086bee12a6703c7d6c | |
| parent | 71b2c59b15fd92d6528d89577360d69aa5661ee9 (diff) | |
| download | mullvadvpn-a59d57b39e898c2506edf3dca8fb31ff5dc25876.tar.xz mullvadvpn-a59d57b39e898c2506edf3dca8fb31ff5dc25876.zip | |
SimulatorVPNConnection: reasserting = false should transition connected state
| -rw-r--r-- | ios/MullvadVPN/SimulatorTunnelProvider.swift | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ios/MullvadVPN/SimulatorTunnelProvider.swift b/ios/MullvadVPN/SimulatorTunnelProvider.swift index ad0be7b407..db70a94063 100644 --- a/ios/MullvadVPN/SimulatorTunnelProvider.swift +++ b/ios/MullvadVPN/SimulatorTunnelProvider.swift @@ -140,7 +140,6 @@ class SimulatorVPNConnection: NSObject, VPNConnectionProtocol { } } - private var statusBeforeReasserting: NEVPNStatus? var reasserting: Bool { get { lock.lock() @@ -155,11 +154,9 @@ class SimulatorVPNConnection: NSObject, VPNConnectionProtocol { _reasserting = newValue if newValue { - statusBeforeReasserting = status status = .reasserting - } else if let newStatus = statusBeforeReasserting { - status = newStatus - statusBeforeReasserting = nil + } else { + status = .connected } } |
