From a7b0ff8c899cd7e56cf1b5ebc5ab5e41c126e176 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 26 Oct 2020 10:36:13 -0500 Subject: [PATCH] Clear the progress when a feed isn't found. --- .../Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index f10670a2a..5b675736e 100644 --- a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -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)) }