Authored by Konstantinos K

Merge pull request #1111 from molon/master

failedURLs can be removed at the appropriate time.
@@ -199,6 +199,12 @@ @@ -199,6 +199,12 @@
199 } 199 }
200 } 200 }
201 else { 201 else {
  202 + if ((options & SDWebImageRetryFailed)) {
  203 + @synchronized (self.failedURLs) {
  204 + [self.failedURLs removeObject:url];
  205 + }
  206 + }
  207 +
202 BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly); 208 BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly);
203 209
204 if (options & SDWebImageRefreshCached && image && !downloadedImage) { 210 if (options & SDWebImageRefreshCached && image && !downloadedImage) {