summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/TunnelManager/TunnelManager.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/ios/MullvadVPN/TunnelManager/TunnelManager.swift b/ios/MullvadVPN/TunnelManager/TunnelManager.swift
index 3e0d159de8..4b33489c8b 100644
--- a/ios/MullvadVPN/TunnelManager/TunnelManager.swift
+++ b/ios/MullvadVPN/TunnelManager/TunnelManager.swift
@@ -449,7 +449,9 @@ final class TunnelManager: StorePaymentObserver {
self?.operationQueue.cancelAllOperations()
self?.wipeAllUserData()
self?.setDeviceState(.loggedOut, persist: true)
- completion?(nil)
+ DispatchQueue.main.async {
+ completion?(nil)
+ }
}
case let .failure(error):
completion?(error)