Fix SDImageLoaderManager that only load image when loader can handle url
This commit is contained in:
parent
5fc84dbbba
commit
572a074161
|
@ -88,7 +88,7 @@
|
||||||
NSArray<id<SDImageLoader>> *loaders = self.loaders;
|
NSArray<id<SDImageLoader>> *loaders = self.loaders;
|
||||||
UNLOCK(self.loadersLock);
|
UNLOCK(self.loadersLock);
|
||||||
for (id<SDImageLoader> loader in loaders.reverseObjectEnumerator) {
|
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];
|
return [loader loadImageWithURL:url options:options context:context progress:progressBlock completed:completedBlock];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue