From 449085b84a7cf88f873301c6ca5cb57a6c93d9d0 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 5 Apr 2020 11:26:21 -0500 Subject: [PATCH] Fix bug that was causing duplicate downloads on OPML import. --- Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift index 37bc811a9..a923b1aa4 100644 --- a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift @@ -195,15 +195,13 @@ final class CloudKitAccountDelegate: AccountDelegate { } } -// os_log(.error, log: self.log, "Error while subscribing to the feed: %@", error.localizedDescription) - refreshProgress.addToNumberOfTasksAndRemaining(2) publicZone.manageSubscriptions(webFeedURLs) { result in self.refreshProgress.completeTask() switch result { case .success: self.accountZone.importOPML(rootExternalID: rootExternalID, items: normalizedItems) { _ in - self.refreshAll(for: account, completion: completion) + self.refreshAll(for: account, downloadFeeds: false, completion: completion) } case .failure(let error): completion(.failure(error))