Skip to content

Commit

Permalink
failedURLs can be removed at the appropriate time.
Browse files Browse the repository at this point in the history
  • Loading branch information
molon committed Apr 8, 2015
1 parent 704c630 commit 9ae8f97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SDWebImage/SDWebImageManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ - (void)diskImageExistsForURL:(NSURL *)url
}
}
else {
if ((options & SDWebImageRetryFailed)) {
@synchronized (self.failedURLs) {
[self.failedURLs removeObject:url];
}
}

BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly);

if (options & SDWebImageRefreshCached && image && !downloadedImage) {
Expand Down

0 comments on commit 9ae8f97

Please sign in to comment.