Make sure we clear the refresh progress on local accounts when it completes.

This commit is contained in:
Maurice Parker 2020-04-03 20:25:21 -05:00
parent b7472fcdaa
commit fc020c06e8
1 changed files with 1 additions and 0 deletions

View File

@ -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(()))
}