Fix bug that could cause the progress indicator to not finish.
This commit is contained in:
parent
c454aa88b8
commit
4a2760ade3
|
@ -507,6 +507,7 @@ private extension CloudKitAccountDelegate {
|
|||
|
||||
self.refresher.refreshFeeds(webFeeds, feedCompletionBlock: { _ in self.refreshProgress.completeTask() }) {
|
||||
account.metadata.lastArticleFetchEndTime = Date()
|
||||
self.refreshProgress.clear()
|
||||
completion(.success(()))
|
||||
}
|
||||
|
||||
|
|
|
@ -107,7 +107,9 @@ extension LocalAccountRefresher: DownloadSessionDelegate {
|
|||
}
|
||||
|
||||
func downloadSession(_ downloadSession: DownloadSession, shouldContinueAfterReceivingData data: Data, representedObject: AnyObject) -> Bool {
|
||||
guard !isSuspended, let feed = representedObject as? WebFeed else {
|
||||
let feed = representedObject as! WebFeed
|
||||
guard !isSuspended else {
|
||||
feedCompletionBlock?(feed)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue