Skip to content

Commit 82746aa

Browse files
authored
Merge pull request #3829 from dreampiggy/bugfix/retry_failed_processor
Fix the retryFailed option does not get modified by optionsProcessor
2 parents b62cb63 + da69f8e commit 82746aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImage/Core/SDWebImageManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ - (SDWebImageCombinedOperation *)loadImageWithURL:(nullable NSURL *)url
218218
// Preprocess the options and context arg to decide the final the result for manager
219219
SDWebImageOptionsResult *result = [self processedResultForURL:url options:options context:context];
220220

221-
if (url.absoluteString.length == 0 || (!(options & SDWebImageRetryFailed) && isFailedUrl)) {
221+
if (url.absoluteString.length == 0 || (!(result.options & SDWebImageRetryFailed) && isFailedUrl)) {
222222
NSString *description = isFailedUrl ? @"Image url is blacklisted" : @"Image url is nil";
223223
NSInteger code = isFailedUrl ? SDWebImageErrorBlackListed : SDWebImageErrorInvalidURL;
224224
[self callCompletionBlockForOperation:operation completion:completedBlock error:[NSError errorWithDomain:SDWebImageErrorDomain code:code userInfo:@{NSLocalizedDescriptionKey : description}] queue:result.context[SDWebImageContextCallbackQueue] url:url];

0 commit comments

Comments
 (0)