Browse Source

Merge pull request #172 from HarrisonXi/master

add a network error situation
Yaoyuan 8 năm trước cách đây
mục cha
commit
aa28792a88
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);
                 }
             }