summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/AutomaticKeyRotationManager.swift
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-07-17 15:26:56 +0200
committerAndrej Mihajlov <and@mullvad.net>2020-07-22 18:35:43 +0300
commit18c0b739b4aec6ae606c42879ec83b40ce00a1fb (patch)
treee6c86fb6c0b68f4c8b3241e89232531b71276f7f /ios/MullvadVPN/AutomaticKeyRotationManager.swift
parent40149a7e14bc9c10056e8a8cb5b9e333f80d5a7e (diff)
downloadmullvadvpn-18c0b739b4aec6ae606c42879ec83b40ce00a1fb.tar.xz
mullvadvpn-18c0b739b4aec6ae606c42879ec83b40ce00a1fb.zip
Refactor the error matching code
Diffstat (limited to 'ios/MullvadVPN/AutomaticKeyRotationManager.swift')
-rw-r--r--ios/MullvadVPN/AutomaticKeyRotationManager.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/AutomaticKeyRotationManager.swift b/ios/MullvadVPN/AutomaticKeyRotationManager.swift
index 9d6b8677a0..a58940d76f 100644
--- a/ios/MullvadVPN/AutomaticKeyRotationManager.swift
+++ b/ios/MullvadVPN/AutomaticKeyRotationManager.swift
@@ -228,7 +228,7 @@ class AutomaticKeyRotationManager {
nextRotationTime = .now() + .seconds(kRetryIntervalOnFailure)
}
- case .failure(.rest(.network(let urlError))) where urlError.code == .cancelled:
+ case .failure(.rest(.network(URLError.cancelled))):
os_log(.default, log: tunnelProviderLog, "Key rotation was cancelled")
break