浏览代码

Merge pull request #172 from HarrisonXi/master

add a network error situation
Yaoyuan 8 年之前
父节点
当前提交
aa28792a88
共有 1 个文件被更改,包括 2 次插入1 次删除
  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);
                 }
             }