Skip to content

Commit

Permalink
fix: move alert to main thread (eu-digital-green-certificates#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBallmann authored May 26, 2021
1 parent f8d0011 commit 31db60c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DGCAWallet/Services/SecureBackground.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
Expand Down

0 comments on commit 31db60c

Please sign in to comment.