From 364f5c4d7a8e8289058dafe3b9e6fe9f7cee5566 Mon Sep 17 00:00:00 2001 From: Whirlwind Date: Wed, 18 Jun 2014 00:14:23 +0800 Subject: [PATCH] should not add url to failedURLs when timeout, cancel and so on. #707 --- SDWebImage/SDWebImageManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageManager.m b/SDWebImage/SDWebImageManager.m index 8396fe55..7c256612 100644 --- a/SDWebImage/SDWebImageManager.m +++ b/SDWebImage/SDWebImageManager.m @@ -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]; }