File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -601,7 +601,8 @@ - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didComp
601
601
CGSize imageSize = image.size ;
602
602
if (imageSize.width == 0 || imageSize.height == 0 ) {
603
603
NSString *description = image == nil ? @" Downloaded image decode failed" : @" Downloaded image has 0 pixels" ;
604
- [self callCompletionBlocksWithError: [NSError errorWithDomain: SDWebImageErrorDomain code: SDWebImageErrorBadImageData userInfo: @{NSLocalizedDescriptionKey : description}]];
604
+ NSError *error = [NSError errorWithDomain: SDWebImageErrorDomain code: SDWebImageErrorBadImageData userInfo: @{NSLocalizedDescriptionKey : description}];
605
+ [self callCompletionBlockWithToken: token image: nil imageData: nil error: error finished: YES ];
605
606
} else {
606
607
[self callCompletionBlockWithToken: token image: image imageData: imageData error: nil finished: YES ];
607
608
}
You can’t perform that action at this time.
0 commit comments