From 31db60c08f720c248798474f0094ff69f8442179 Mon Sep 17 00:00:00 2001 From: Paul B Date: Wed, 26 May 2021 19:23:53 +0200 Subject: [PATCH] fix: move alert to main thread (#66) --- DGCAWallet/Services/SecureBackground.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DGCAWallet/Services/SecureBackground.swift b/DGCAWallet/Services/SecureBackground.swift index 0e65485..088814c 100644 --- a/DGCAWallet/Services/SecureBackground.swift +++ b/DGCAWallet/Services/SecureBackground.swift @@ -80,8 +80,10 @@ struct SecureBackground { completion?(false) return } - controller?.showAlert(title: l10n("auth.confirm"), subtitle: l10n("auth.error")) { _ in - completion?(false) + DispatchQueue.main.async { + controller?.showAlert(title: l10n("auth.confirm"), subtitle: l10n("auth.error")) { _ in + completion?(false) + } } } }