Change sync to async

This commit is contained in:
Maurice Parker
2022-03-01 14:53:43 -06:00
parent d828925483
commit 27dd920cce

View File

@@ -409,7 +409,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)
}