Ensure the add new feedly feed completion handler is called when a feed is not found. Fixes #2470
This commit is contained in:
parent
e651b1e17b
commit
4280895fa6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue