summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-03-10 14:34:55 +0100
committerAndrej Mihajlov <and@mullvad.net>2022-03-11 16:28:36 +0100
commita59d57b39e898c2506edf3dca8fb31ff5dc25876 (patch)
tree81409407b3da0b76a345c1086bee12a6703c7d6c
parent71b2c59b15fd92d6528d89577360d69aa5661ee9 (diff)
downloadmullvadvpn-a59d57b39e898c2506edf3dca8fb31ff5dc25876.tar.xz
mullvadvpn-a59d57b39e898c2506edf3dca8fb31ff5dc25876.zip
SimulatorVPNConnection: reasserting = false should transition connected state
-rw-r--r--ios/MullvadVPN/SimulatorTunnelProvider.swift7
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
}
}