Ensure the add new feedly feed completion handler is called when a feed is not found. Fixes #2470

This commit is contained in:
Kiel Gillard 🤪 2020-10-01 14:09:41 +10:00
parent e651b1e17b
commit 4280895fa6
1 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,13 @@ class FeedlyAddNewFeedOperation: FeedlyOperation, FeedlyOperationDelegate, Feedl
addCompletionHandler = nil
super.didCancel()
}
override func didFinish(with error: Error) {
assert(Thread.isMainThread)
addCompletionHandler?(.failure(error))
addCompletionHandler = nil
super.didFinish(with: error)
}
func feedlySearchOperation(_ operation: FeedlySearchOperation, didGet response: FeedlyFeedsSearchResponse) {
guard !isCanceled else {