When download start, mark the query cache operation finished to avoid bug behavior
This commit is contained in:
parent
2729096221
commit
3d1197b820
|
@ -382,6 +382,11 @@ static id<SDImageLoader> _defaultImageLoader;
|
||||||
cacheType:(SDImageCacheType)cacheType
|
cacheType:(SDImageCacheType)cacheType
|
||||||
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
||||||
completed:(nullable SDInternalCompletionBlock)completedBlock {
|
completed:(nullable SDInternalCompletionBlock)completedBlock {
|
||||||
|
// Mark the cache operation end
|
||||||
|
@synchronized (operation) {
|
||||||
|
operation.cacheOperation = nil;
|
||||||
|
}
|
||||||
|
|
||||||
// Grab the image loader to use
|
// Grab the image loader to use
|
||||||
id<SDImageLoader> imageLoader;
|
id<SDImageLoader> imageLoader;
|
||||||
if ([context[SDWebImageContextImageLoader] conformsToProtocol:@protocol(SDImageLoader)]) {
|
if ([context[SDWebImageContextImageLoader] conformsToProtocol:@protocol(SDImageLoader)]) {
|
||||||
|
|
Loading…
Reference in New Issue