duplicate failed urls are added into failedURLs

fix bug when download image with option SDWebImageRetryFailed
This commit is contained in:
Dick 2014-12-22 16:58:16 +08:00
parent 0db489b32e
commit cded20c736
1 changed files with 3 additions and 1 deletions

View File

@ -194,10 +194,12 @@
if (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut) {
@synchronized (self.failedURLs) {
if (![self.failedURLs containsObject:url]) {
[self.failedURLs addObject:url];
}
}
}
}
else {
BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly);