Merge pull request #994 from initlifeinc/master
duplicate failed urls are added into failedURLs
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -194,10 +194,12 @@ | @@ -194,10 +194,12 @@ | ||
194 | 194 | ||
195 | if (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut) { | 195 | if (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut) { |
196 | @synchronized (self.failedURLs) { | 196 | @synchronized (self.failedURLs) { |
197 | + if (![self.failedURLs containsObject:url]) { | ||
197 | [self.failedURLs addObject:url]; | 198 | [self.failedURLs addObject:url]; |
198 | } | 199 | } |
199 | } | 200 | } |
200 | } | 201 | } |
202 | + } | ||
201 | else { | 203 | else { |
202 | BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly); | 204 | BOOL cacheOnDisk = !(options & SDWebImageCacheMemoryOnly); |
203 | 205 |
-
Please register or login to post a comment