From db614bc53e17553a3720a1af3569a2145435c357 Mon Sep 17 00:00:00 2001 From: Nick Hingston Date: Mon, 2 Jun 2014 12:34:17 +0100 Subject: [PATCH] If NSURLConnection response statusCode not valid (e.g. 404) , downloader never stops its runloop and hangs the operation queue --- SDWebImage/SDWebImageDownloaderOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageDownloaderOperation.m b/SDWebImage/SDWebImageDownloaderOperation.m index baced7c..757a901 100644 --- a/SDWebImage/SDWebImageDownloaderOperation.m +++ b/SDWebImage/SDWebImageDownloaderOperation.m @@ -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]; } }