From bd307cbb6c6f250d20858f0fd0346ac9b671df15 Mon Sep 17 00:00:00 2001 From: Kiel Gillard Date: Wed, 18 Dec 2019 09:26:57 +1100 Subject: [PATCH] Give the FeedlySyncStarredArticlesOperation a delegate so that if the database becomes suspended, the remainder of the sync operation cancels. --- .../Account/Feedly/Operations/FeedlySyncAllOperation.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Frameworks/Account/Feedly/Operations/FeedlySyncAllOperation.swift b/Frameworks/Account/Feedly/Operations/FeedlySyncAllOperation.swift index 9b58de533..595ad0555 100644 --- a/Frameworks/Account/Feedly/Operations/FeedlySyncAllOperation.swift +++ b/Frameworks/Account/Feedly/Operations/FeedlySyncAllOperation.swift @@ -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)