summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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
}
}