diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-04-30 15:24:12 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-05-05 14:52:50 +0200 |
| commit | 5ea34e169f87146382d247c91eb3bbe8d09ac872 (patch) | |
| tree | 1c0e0230aecaa9fb49b65bde9db9a8658f76cb54 | |
| parent | c2548f51283735fe566bf1aa64d9892227bb14da (diff) | |
| download | mullvadvpn-5ea34e169f87146382d247c91eb3bbe8d09ac872.tar.xz mullvadvpn-5ea34e169f87146382d247c91eb3bbe8d09ac872.zip | |
TunnelManager: fix bug where the account migration was not performed
| -rw-r--r-- | ios/CHANGELOG.md | 1 | ||||
| -rw-r--r-- | ios/MullvadVPN/TunnelManager.swift | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ios/CHANGELOG.md b/ios/CHANGELOG.md index dd504ed5fe..36ece08e5a 100644 --- a/ios/CHANGELOG.md +++ b/ios/CHANGELOG.md @@ -29,6 +29,7 @@ Line wrap the file at 100 chars. Th ### Fixed - Fix bug which caused the tunnel manager to become unresponsive in the rare event of failure to disable on-demand when stopping the tunnel from within the app. +- Fix bug that caused the app to skip tunnel settings migration from older versions of the app. ## [2021.1] - 2021-03-16 diff --git a/ios/MullvadVPN/TunnelManager.swift b/ios/MullvadVPN/TunnelManager.swift index f8085c08da..ddac561e93 100644 --- a/ios/MullvadVPN/TunnelManager.swift +++ b/ios/MullvadVPN/TunnelManager.swift @@ -315,7 +315,7 @@ class TunnelManager { if let error = error { finish(.failure(.loadAllVPNConfigurations(error))) } else { - if let accountToken = self.accountToken { + if let accountToken = accountToken { // Migrate the tunnel settings if needed self.migrateTunnelSettings(accountToken: accountToken) |
