mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 16:26:04 +00:00
Change sync to async
This commit is contained in:
1 parent
d828925483
commit
27dd920cce
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user