From 9ae8f974253f7d91f236cdfaf9657b4ad08c3c56 Mon Sep 17 00:00:00 2001 From: molon Date: Wed, 8 Apr 2015 18:24:52 +0800 Subject: [PATCH] failedURLs can be removed at the appropriate time. --- SDWebImage/SDWebImageManager.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SDWebImage/SDWebImageManager.m b/SDWebImage/SDWebImageManager.m index 4a94a792..efaf9a0e 100644 --- a/SDWebImage/SDWebImageManager.m +++ b/SDWebImage/SDWebImageManager.m @@ -199,6 +199,12 @@ } } else { + if ((options & SDWebImageRetryFailed)) { + @synchronized (self.failedURLs) { + [self.failedURLs removeObject:url]; + } + } + BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly); if (options & SDWebImageRefreshCached && image && !downloadedImage) {