From 572a07416184c52d1a64b0926296fae07736a693 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 4 Jul 2018 15:19:12 +0800 Subject: [PATCH] Fix SDImageLoaderManager that only load image when loader can handle url --- SDWebImage/SDImageLoadersManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDImageLoadersManager.m b/SDWebImage/SDImageLoadersManager.m index 123113bf..c53e4247 100644 --- a/SDWebImage/SDImageLoadersManager.m +++ b/SDWebImage/SDImageLoadersManager.m @@ -88,7 +88,7 @@ NSArray> *loaders = self.loaders; UNLOCK(self.loadersLock); for (id loader in loaders.reverseObjectEnumerator) { - if ([loader respondsToSelector:@selector(loadImageWithURL:options:context:progress:completed:)]) { + if ([loader canLoadWithURL:url]) { return [loader loadImageWithURL:url options:options context:context progress:progressBlock completed:completedBlock]; } }