Merge pull request #735 from nickhingston/pullRequestBranch
If NSURLConnection response statusCode not valid (e.g. 404) , downloader...
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -203,7 +203,7 @@ | @@ -203,7 +203,7 @@ | ||
203 | if (self.completedBlock) { | 203 | if (self.completedBlock) { |
204 | self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:[((NSHTTPURLResponse *)response) statusCode] userInfo:nil], YES); | 204 | self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:[((NSHTTPURLResponse *)response) statusCode] userInfo:nil], YES); |
205 | } | 205 | } |
206 | - | 206 | + CFRunLoopStop(CFRunLoopGetCurrent()); |
207 | [self done]; | 207 | [self done]; |
208 | } | 208 | } |
209 | } | 209 | } |
-
Please register or login to post a comment