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:
Bogdan Poplauschi 2014-06-17 21:57:54 +03:00
commit f6fdaeb6ae
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];
}