mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-29 18:29:27 +01:00
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…
x
Reference in New Issue
Block a user