Add missing completion block calls.
This commit is contained in:
parent
ff0c23d335
commit
ef6a79489a
|
@ -116,18 +116,26 @@ extension LocalAccountRefresher: DownloadSessionDelegate {
|
||||||
}
|
}
|
||||||
|
|
||||||
if data.isDefinitelyNotFeed() {
|
if data.isDefinitelyNotFeed() {
|
||||||
|
feedCompletionBlock?(feed)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if data.count > 4096 {
|
if data.count > 4096 {
|
||||||
let parserData = ParserData(url: feed.url, data: data)
|
let parserData = ParserData(url: feed.url, data: data)
|
||||||
return FeedParser.mightBeAbleToParseBasedOnPartialData(parserData)
|
if FeedParser.mightBeAbleToParseBasedOnPartialData(parserData) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
feedCompletionBlock?(feed)
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func downloadSession(_ downloadSession: DownloadSession, didReceiveUnexpectedResponse response: URLResponse, representedObject: AnyObject) {
|
func downloadSession(_ downloadSession: DownloadSession, didReceiveUnexpectedResponse response: URLResponse, representedObject: AnyObject) {
|
||||||
|
let feed = representedObject as! WebFeed
|
||||||
|
feedCompletionBlock?(feed)
|
||||||
}
|
}
|
||||||
|
|
||||||
func downloadSession(_ downloadSession: DownloadSession, didReceiveNotModifiedResponse: URLResponse, representedObject: AnyObject) {
|
func downloadSession(_ downloadSession: DownloadSession, didReceiveNotModifiedResponse: URLResponse, representedObject: AnyObject) {
|
||||||
|
|
Loading…
Reference in New Issue