Authored by Bogdan Poplauschi

Merge pull request #766 from Whirlwind/origin_master

should not add url to failedURLs when timeout, cancel and so on. #707
... ... @@ -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];
}
... ...