Change sync to async

This commit is contained in:
Maurice Parker 2022-03-01 14:53:43 -06:00
parent f22239db36
commit 298e164740

View File

@ -411,7 +411,7 @@ private extension AppDelegate {
// set expiration handler
task.expirationHandler = { [weak task] in
os_log("Accounts refresh processing terminated for running too long.", log: self.log, type: .info)
DispatchQueue.main.sync {
DispatchQueue.main.async {
self.suspendApplication()
task?.setTaskCompleted(success: false)
}