If NSURLConnection response statusCode not valid (e.g. 404) , downloader never stops its runloop and hangs the operation queue

This commit is contained in:
Nick Hingston 2014-06-02 12:34:17 +01:00
parent 5b3c54ba16
commit db614bc53e
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@
if (self.completedBlock) {
self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:[((NSHTTPURLResponse *)response) statusCode] userInfo:nil], YES);
}
CFRunLoopStop(CFRunLoopGetCurrent());
[self done];
}
}