Browse Source

add a network error situation

HarrisonXi 8 years ago
parent
commit
be27a66a0a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      YYWebImage/YYWebImageOperation.m

+ 2 - 1
YYWebImage/YYWebImageOperation.m

@@ -726,7 +726,8 @@ static void URLInBlackListAdd(NSURL *url) {
                 if (error.code != NSURLErrorNotConnectedToInternet &&
                     error.code != NSURLErrorCancelled &&
                     error.code != NSURLErrorTimedOut &&
-                    error.code != NSURLErrorUserCancelledAuthentication) {
+                    error.code != NSURLErrorUserCancelledAuthentication &&
+                    error.code != NSURLErrorNetworkConnectionLost) {
                     URLInBlackListAdd(_request.URL);
                 }
             }