Explorar el Código

Merge pull request #172 from HarrisonXi/master

add a network error situation
Yaoyuan hace 8 años
padre
commit
aa28792a88
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
                 }
             }