From 31c4a09430caa27eb6c5ac1a59bec46b2069dd1a Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sat, 25 Jun 2022 22:59:16 +0800 Subject: [PATCH] Fix one bug that callback the wrong cache type --- SDWebImage/Core/SDWebImageManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Core/SDWebImageManager.m b/SDWebImage/Core/SDWebImageManager.m index 61a15e74..f80d0917 100644 --- a/SDWebImage/Core/SDWebImageManager.m +++ b/SDWebImage/Core/SDWebImageManager.m @@ -661,7 +661,7 @@ static id _defaultImageLoader; // transformed/thumbnailed cache key NSString *key = [self cacheKeyForURL:url context:context]; [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 { [self callCompletionBlockForOperation:operation completion:completedBlock image:image data:data error:nil cacheType:cacheType finished:finished url:url];