Notify on background thread to prevent main thread deadlock
This commit is contained in:
parent
7e86f3dec3
commit
9d7d09a2a2
|
@ -64,9 +64,11 @@ class CloudKitSendStatusOperation: MainThreadOperation {
|
|||
}
|
||||
}
|
||||
|
||||
group.notify(queue: DispatchQueue.main) {
|
||||
group.notify(queue: DispatchQueue.global(qos: .background)) {
|
||||
os_log(.debug, log: self.log, "Done sending article statuses.")
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
DispatchQueue.main.async {
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue