From fc020c06e8697cee3ee4238a400bbee16b80b429 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 3 Apr 2020 20:25:21 -0500 Subject: [PATCH] Make sure we clear the refresh progress on local accounts when it completes. --- Frameworks/Account/LocalAccount/LocalAccountDelegate.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Frameworks/Account/LocalAccount/LocalAccountDelegate.swift b/Frameworks/Account/LocalAccount/LocalAccountDelegate.swift index a1751ff16..e99388d81 100644 --- a/Frameworks/Account/LocalAccount/LocalAccountDelegate.swift +++ b/Frameworks/Account/LocalAccount/LocalAccountDelegate.swift @@ -37,6 +37,7 @@ final class LocalAccountDelegate: AccountDelegate { let webFeeds = account.flattenedWebFeeds() refreshProgress.addToNumberOfTasksAndRemaining(webFeeds.count) refresher.refreshFeeds(webFeeds, feedCompletionBlock: { _ in self.refreshProgress.completeTask() }) { + self.refreshProgress.clear() account.metadata.lastArticleFetchEndTime = Date() completion(.success(())) }