Fix SDImageLoaderManager that only load image when loader can handle url

This commit is contained in:
zhongwuzw 2018-07-04 15:19:12 +08:00
parent 5fc84dbbba
commit 572a074161
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@
NSArray<id<SDImageLoader>> *loaders = self.loaders;
UNLOCK(self.loadersLock);
for (id<SDImageLoader> 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];
}
}