diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2020-07-17 15:26:56 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2020-07-22 18:35:43 +0300 |
| commit | 18c0b739b4aec6ae606c42879ec83b40ce00a1fb (patch) | |
| tree | e6c86fb6c0b68f4c8b3241e89232531b71276f7f /ios/MullvadVPN/AutomaticKeyRotationManager.swift | |
| parent | 40149a7e14bc9c10056e8a8cb5b9e333f80d5a7e (diff) | |
| download | mullvadvpn-18c0b739b4aec6ae606c42879ec83b40ce00a1fb.tar.xz mullvadvpn-18c0b739b4aec6ae606c42879ec83b40ce00a1fb.zip | |
Refactor the error matching code
Diffstat (limited to 'ios/MullvadVPN/AutomaticKeyRotationManager.swift')
| -rw-r--r-- | ios/MullvadVPN/AutomaticKeyRotationManager.swift | 2 |
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 |
