diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-09-17 13:53:07 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-09-21 10:43:58 +0200 |
| commit | 014a8bc6122242ac9b5e910f47f92dacdd788719 (patch) | |
| tree | cd3e835a865594fdaead1cf579ef1ad047c96040 | |
| parent | fdfb7e80c35ea56976b35b13d7819646ef2ee25e (diff) | |
| download | mullvadvpn-014a8bc6122242ac9b5e910f47f92dacdd788719.tar.xz mullvadvpn-014a8bc6122242ac9b5e910f47f92dacdd788719.zip | |
SimulatorTunnelProvider: clean up
| -rw-r--r-- | ios/MullvadVPN/SimulatorTunnelProvider.swift | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ios/MullvadVPN/SimulatorTunnelProvider.swift b/ios/MullvadVPN/SimulatorTunnelProvider.swift index 9e5ba30fdf..ab0f4b6342 100644 --- a/ios/MullvadVPN/SimulatorTunnelProvider.swift +++ b/ios/MullvadVPN/SimulatorTunnelProvider.swift @@ -6,7 +6,6 @@ // Copyright © 2020 Mullvad VPN AB. All rights reserved. // - import Foundation import NetworkExtension @@ -165,7 +164,9 @@ class SimulatorVPNConnection: NSObject, VPNConnectionProtocol { private var _status: NEVPNStatus = .disconnected private(set) var status: NEVPNStatus { get { - lock.withCriticalBlock { _status } + return lock.withCriticalBlock { + return _status + } } set { lock.withCriticalBlock { |
