Skip to content

Commit

Permalink
Merge pull request SDWebImage#1111 from molon/master
Browse files Browse the repository at this point in the history
failedURLs can be removed at the appropriate time.
  • Loading branch information
mythodeia committed May 12, 2015
2 parents 98989d9 + 9ae8f97 commit a516881
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 a516881

Please sign in to comment.