From 125e63410398975bcee97efbe203d0c03e9bb4a0 Mon Sep 17 00:00:00 2001 From: Bug Magnet Date: Mon, 11 Sep 2023 11:09:09 +0200 Subject: [PATCH] Make TunnelManager dispatch to the main queue after deleting an account --- ios/MullvadVPN/TunnelManager/TunnelManager.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/MullvadVPN/TunnelManager/TunnelManager.swift b/ios/MullvadVPN/TunnelManager/TunnelManager.swift index 3e0d159de8c5..4b33489c8b9b 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)