Call download progress on the main queue
This commit is contained in:
parent
059d0717ee
commit
f3a1b074ac
|
@ -89,9 +89,11 @@ final class FeedlyAccountDelegate: AccountDelegate {
|
||||||
progress.addToNumberOfTasksAndRemaining(1)
|
progress.addToNumberOfTasksAndRemaining(1)
|
||||||
syncStrategy?.startSync { result in
|
syncStrategy?.startSync { result in
|
||||||
os_log(.debug, log: log, "Sync took %.3f seconds", -date.timeIntervalSinceNow)
|
os_log(.debug, log: log, "Sync took %.3f seconds", -date.timeIntervalSinceNow)
|
||||||
|
DispatchQueue.main.async {
|
||||||
progress.completeTask()
|
progress.completeTask()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func sendArticleStatus(for account: Account, completion: @escaping (() -> Void)) {
|
func sendArticleStatus(for account: Account, completion: @escaping (() -> Void)) {
|
||||||
os_log(.debug, log: log, "*** SKIPPING SEND ARTICLE STATUS ***")
|
os_log(.debug, log: log, "*** SKIPPING SEND ARTICLE STATUS ***")
|
||||||
|
|
Loading…
Reference in New Issue