should not add url to failedURLs when timeout, cancel and so on. #707
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 | } |
-
Please register or login to post a comment