Skip to content

Commit

Permalink
Merge pull request SDWebImage#1331 from 102errors/master
Browse files Browse the repository at this point in the history
spelling
  • Loading branch information
bpoplauschi committed Oct 8, 2015
2 parents eec1b67 + 233b6c2 commit 782c682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImage/SDWebImageManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ - (void)diskImageExistsForURL:(NSURL *)url
if ((!image || options & SDWebImageRefreshCached) && (![self.delegate respondsToSelector:@selector(imageManager:shouldDownloadImageForURL:)] || [self.delegate imageManager:self shouldDownloadImageForURL:url])) {
if (image && options & SDWebImageRefreshCached) {
dispatch_main_sync_safe(^{
// If image was found in the cache bug SDWebImageRefreshCached is provided, notify about the cached image
// If image was found in the cache but SDWebImageRefreshCached is provided, notify about the cached image
// AND try to re-download it in order to let a chance to NSURLCache to refresh it from server.
completedBlock(image, nil, cacheType, YES, url);
});
Expand Down

0 comments on commit 782c682

Please sign in to comment.