|
@@ -453,7 +453,7 @@ totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(error && error.code == -1005 && !operation.isFile404Cancel){//网络中断
|
|
|
+ if(error && (error.code == -1005 || error.code == -1009) && !operation.isFile404Cancel){//网络中断
|
|
|
HLog(@"reDownloadNetworkTaskBy");
|
|
|
//延时几秒再次启动这个任务
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|