summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift6
1 files changed, 1 insertions, 5 deletions
diff --git a/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift b/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift
index 01c31491a1..c634b679e6 100644
--- a/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift
+++ b/ios/MullvadVPN/TunnelIPC/TunnelIPCRequestOperation.swift
@@ -110,11 +110,7 @@ extension TunnelIPC {
}
private func handleVPNStatus(_ status: NEVPNStatus) {
- guard !isCancelled else {
- return
- }
-
- guard !requestSent else {
+ guard !isCancelled && !requestSent else {
return
}