Fix one bug that callback the wrong cache type
This commit is contained in:
parent
c47158362d
commit
31c4a09430
|
@ -661,7 +661,7 @@ static id<SDImageLoader> _defaultImageLoader;
|
||||||
// transformed/thumbnailed cache key
|
// transformed/thumbnailed cache key
|
||||||
NSString *key = [self cacheKeyForURL:url context:context];
|
NSString *key = [self cacheKeyForURL:url context:context];
|
||||||
[self storeImage:image imageData:cacheData forKey:key imageCache:imageCache cacheType:storeCacheType waitStoreCache:waitStoreCache completion:^{
|
[self storeImage:image imageData:cacheData forKey:key imageCache:imageCache cacheType:storeCacheType waitStoreCache:waitStoreCache completion:^{
|
||||||
[self callCompletionBlockForOperation:operation completion:completedBlock image:image data:data error:nil cacheType:SDImageCacheTypeNone finished:finished url:url];
|
[self callCompletionBlockForOperation:operation completion:completedBlock image:image data:data error:nil cacheType:cacheType finished:finished url:url];
|
||||||
}];
|
}];
|
||||||
} else {
|
} else {
|
||||||
[self callCompletionBlockForOperation:operation completion:completedBlock image:image data:data error:nil cacheType:cacheType finished:finished url:url];
|
[self callCompletionBlockForOperation:operation completion:completedBlock image:image data:data error:nil cacheType:cacheType finished:finished url:url];
|
||||||
|
|
Loading…
Reference in New Issue