Give the FeedlySyncStarredArticlesOperation a delegate so that if the database becomes suspended, the remainder of the sync operation cancels.

This commit is contained in:
Kiel Gillard 2019-12-18 09:26:57 +11:00
parent 311f5b2e81
commit bd307cbb6c
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ final class FeedlySyncAllOperation: FeedlyOperation {
// Get each and every starred article.
let syncStarred = FeedlySyncStarredArticlesOperation(account: account, credentials: credentials, service: getStarredArticlesService, log: log)
syncStarred.delegate = self
syncStarred.downloadProgress = downloadProgress
syncStarred.addDependency(createFeedsOperation)
self.operationQueue.addOperation(syncStarred)