mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-22 07:13:58 +01:00
Change to call suspend on main thread when expiration handler called. Issue #1399
This commit is contained in:
parent
bcc1a1f5b5
commit
26f49d4b51
@ -365,7 +365,9 @@ private extension AppDelegate {
|
||||
|
||||
// set expiration handler
|
||||
task.expirationHandler = { [weak task] in
|
||||
self.suspendApplication()
|
||||
DispatchQueue.main.sync {
|
||||
self.suspendApplication()
|
||||
}
|
||||
os_log("Accounts refresh processing terminated for running too long.", log: self.log, type: .info)
|
||||
task?.setTaskCompleted(success: false)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user