|
@@ -463,6 +463,11 @@ static nasDownloadFileManager * cur_nasDownloadFileManager = nil;
|
|
|
}
|
|
|
|
|
|
[[nasDownloadManager shareManager] suspendAllDownloadTask];
|
|
|
+
|
|
|
+ //刷新UI
|
|
|
+ mainBlock(^{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:nasDownloadTaskFinishedNotification object:nil];
|
|
|
+ });
|
|
|
}
|
|
|
else if(dataModel){//暂停指定任务
|
|
|
NSString *urlString = dataModel.fileUrl;
|
|
@@ -517,6 +522,11 @@ static nasDownloadFileManager * cur_nasDownloadFileManager = nil;
|
|
|
|
|
|
}];
|
|
|
}
|
|
|
+
|
|
|
+ //刷新UI
|
|
|
+ mainBlock(^{
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:nasDownloadTaskFinishedNotification object:nil];
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
else
|