diff --git a/SDWebImage/SDImageLoadersManager.m b/SDWebImage/SDImageLoadersManager.m index dd99c31c..680b9a7a 100644 --- a/SDWebImage/SDImageLoadersManager.m +++ b/SDWebImage/SDImageLoadersManager.m @@ -103,11 +103,12 @@ - (BOOL)shouldBlockFailedURLWithURL:(NSURL *)url error:(NSError *)error { NSArray> *loaders = self.loaders; for (id loader in loaders.reverseObjectEnumerator) { - if (![loader respondsToSelector:@selector(shouldBlockFailedURLWithURL:error:)]) { - break; - } if ([loader canRequestImageForURL:url]) { - return [loader shouldBlockFailedURLWithURL:url error:error]; + if ([loader respondsToSelector:@selector(shouldBlockFailedURLWithURL:error:)]) { + return [loader shouldBlockFailedURLWithURL:url error:error]; + } else { + return NO; + } } } return NO;