Authored by Whirlwind

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

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