diff options
| -rw-r--r-- | ios/MullvadVPN/TunnelManager/SetAccountOperation.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ios/MullvadVPN/TunnelManager/SetAccountOperation.swift b/ios/MullvadVPN/TunnelManager/SetAccountOperation.swift index 9d69fceda8..ee302f9f38 100644 --- a/ios/MullvadVPN/TunnelManager/SetAccountOperation.swift +++ b/ios/MullvadVPN/TunnelManager/SetAccountOperation.swift @@ -191,16 +191,16 @@ class SetAccountOperation: AsyncOperation { // Remove VPN configuration tunnelProvider.removeFromPreferences { error in self.queue.async { + // Ignore error but log it if let error = error { - // Ignore error but log it self.logger.error( chainedError: AnyChainedError(error), message: "Failed to remove VPN configuration." ) - } else { - self.state.setTunnelProvider(nil, shouldRefreshTunnelState: false) } + self.state.setTunnelProvider(nil, shouldRefreshTunnelState: false) + completionHandler() } } |
