From 57502a9d1d3044a2c2f7969e5241619a697625fb Mon Sep 17 00:00:00 2001 From: xichun Date: Fri, 6 Jan 2017 11:40:28 +0800 Subject: [PATCH] add a network error situation --- SDWebImage/SDWebImageManager.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageManager.m b/SDWebImage/SDWebImageManager.m index b0529c47..b057c944 100644 --- a/SDWebImage/SDWebImageManager.m +++ b/SDWebImage/SDWebImageManager.m @@ -186,7 +186,8 @@ && error.code != NSURLErrorInternationalRoamingOff && error.code != NSURLErrorDataNotAllowed && error.code != NSURLErrorCannotFindHost - && error.code != NSURLErrorCannotConnectToHost) { + && error.code != NSURLErrorCannotConnectToHost + && error.code != NSURLErrorNetworkConnectionLost) { @synchronized (self.failedURLs) { [self.failedURLs addObject:url]; }