Merge pull request #994 from initlifeinc/master

duplicate failed urls are added into failedURLs
This commit is contained in:
Bogdan Poplauschi 2014-12-22 11:12:36 +02:00
commit 21656fad68
1 changed files with 3 additions and 1 deletions

View File

@ -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];
}
} }
} }
} }