If NSURLConnection response statusCode not valid (e.g. 404) , downloader never stops its runloop and hangs the operation queue
This commit is contained in:
parent
5b3c54ba16
commit
db614bc53e
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue