fixed SDWebImageRefreshCached bug for large images

This commit is contained in:
Edison Chang 2014-06-04 12:36:11 +08:00
parent 542d930f10
commit f43dd896fa
1 changed files with 5 additions and 1 deletions

View File

@ -335,7 +335,11 @@
[[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
SDWebImageDownloaderCompletedBlock completionBlock = self.completedBlock;
if (![[NSURLCache sharedURLCache] cachedResponseForRequest:_request]) {
responseFromCached = NO;
}
if (completionBlock) {
if (self.options & SDWebImageDownloaderIgnoreCachedResponse && responseFromCached) {
completionBlock(nil, nil, nil, YES);