Do not mark URLs a fail when error is due to missing network connection
This commit is contained in:
parent
75cf6a09ae
commit
b398208beb
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue