Revert the changes to check `SDWebImageRetryFailed` before adding the black list. This is the previous version behavior.

This commit is contained in:
DreamPiggy 2020-03-05 17:00:04 +08:00
parent 2abb8d0628
commit cf79d1c3ae
1 changed files with 0 additions and 3 deletions

View File

@ -495,9 +495,6 @@ static id<SDImageLoader> _defaultImageLoader;
error:(nonnull NSError *)error error:(nonnull NSError *)error
options:(SDWebImageOptions)options options:(SDWebImageOptions)options
context:(nullable SDWebImageContext *)context { context:(nullable SDWebImageContext *)context {
if ((options & SDWebImageRetryFailed)) {
return NO;
}
id<SDImageLoader> imageLoader; id<SDImageLoader> imageLoader;
if ([context[SDWebImageContextImageLoader] conformsToProtocol:@protocol(SDImageLoader)]) { if ([context[SDWebImageContextImageLoader] conformsToProtocol:@protocol(SDImageLoader)]) {
imageLoader = context[SDWebImageContextImageLoader]; imageLoader = context[SDWebImageContextImageLoader];