should not add url to failedURLs when timeout, cancel and so on. #707

This commit is contained in:
Whirlwind 2014-06-18 00:14:23 +08:00
parent b81b7f9b4a
commit 364f5c4d7a
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@
completedBlock(nil, error, SDImageCacheTypeNone, finished);
});
if (error.code != NSURLErrorNotConnectedToInternet) {
if (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut) {
@synchronized (self.failedURLs) {
[self.failedURLs addObject:url];
}