Merge pull request #766 from Whirlwind/origin_master
should not add url to failedURLs when timeout, cancel and so on. #707
This commit is contained in:
commit
f6fdaeb6ae
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue