Do not mark URLs a fail when error is due to missing network connection

This commit is contained in:
Olivier Poitrey 2013-01-11 01:14:56 +01:00
parent 75cf6a09ae
commit b398208beb
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@
if (error)
{
[self.failedURLs addObject:url];
if (error.code != NSURLErrorNotConnectedToInternet)
{
[self.failedURLs addObject:url];
}
}
else if (downloadedImage && finished)
{