duplicate failed urls are added into failedURLs
fix bug when download image with option SDWebImageRetryFailed
This commit is contained in:
parent
0db489b32e
commit
cded20c736
|
@ -194,7 +194,9 @@
|
||||||
|
|
||||||
if (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut) {
|
if (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut) {
|
||||||
@synchronized (self.failedURLs) {
|
@synchronized (self.failedURLs) {
|
||||||
[self.failedURLs addObject:url];
|
if (![self.failedURLs containsObject:url]) {
|
||||||
|
[self.failedURLs addObject:url];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue