should not add url to failedURLs when timeout, cancel and so on. #707
This commit is contained in:
parent
b81b7f9b4a
commit
364f5c4d7a
|
@ -151,7 +151,7 @@
|
||||||
completedBlock(nil, error, SDImageCacheTypeNone, finished);
|
completedBlock(nil, error, SDImageCacheTypeNone, finished);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (error.code != NSURLErrorNotConnectedToInternet) {
|
if (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut) {
|
||||||
@synchronized (self.failedURLs) {
|
@synchronized (self.failedURLs) {
|
||||||
[self.failedURLs addObject:url];
|
[self.failedURLs addObject:url];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue