Clear the progress when a feed isn't found.

This commit is contained in:
Maurice Parker 2020-10-26 10:36:13 -05:00
parent 43382df4ec
commit a7b0ff8c89

View File

@ -317,6 +317,7 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
case .success(let feedSpecifiers):
let feedSpecifiers = feedSpecifiers.filter { !$0.urlString.contains("json") }
guard let bestFeedSpecifier = FeedSpecifier.bestFeed(in: feedSpecifiers) else {
self.refreshProgress.clear()
completion(.failure(AccountError.createErrorNotFound))
return
}
@ -346,6 +347,7 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
}
case .failure:
self.refreshProgress.clear()
completion(.failure(AccountError.createErrorNotFound))
}