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

@ -105,9 +105,12 @@
completedBlock(downloadedImage, error, SDImageCacheTypeNone, finished);
if (error)
{
if (error.code != NSURLErrorNotConnectedToInternet)
{
[self.failedURLs addObject:url];
}
}
else if (downloadedImage && finished)
{
[self.imageCache storeImage:downloadedImage imageData:data forKey:key toDisk:YES];