|
@@ -15,6 +15,7 @@
|
|
|
#import "errorAlertTool.h"
|
|
|
#import "RcGameWQKeyChain.h"
|
|
|
#import "USBInsertPopView.h"
|
|
|
+#import "nasMixUploadManager.h"
|
|
|
|
|
|
@interface webSocketManager ()
|
|
|
{
|
|
@@ -435,11 +436,14 @@ static webSocketManager *webSocketManagerInstance = nil;
|
|
|
{
|
|
|
|
|
|
BOOL isBackupsingType = [[backupsFileManager shareInstance] checkBackupsingFun];
|
|
|
- BOOL isUploadingType = [[uploadFileManager shareInstance] checkUploadingFun];
|
|
|
- BOOL isDownloadingType = [[downloadManager shareInstance] checkDownloadingFun];
|
|
|
- BOOL isBackground = [HWDataManager getBoolWithKey:stringKeyAddSn(Const_file_Transfe_working_background)];
|
|
|
+ //BOOL isUploadingType = [[uploadFileManager shareInstance] checkUploadingFun];
|
|
|
+ BOOL isUploadingType = [[nasMixUploadManager shareManager] checkUploadTaskDoingFun];
|
|
|
+ //BOOL isDownloadingType = [[downloadManager shareInstance] checkDownloadingFun];
|
|
|
+ BOOL isDownloadingType = [[nasDownloadManager shareManager] isDownLoadIngType];
|
|
|
BOOL isNasDownloadingType = [customDownloadManager shareManager].isDownLoadIngType;
|
|
|
|
|
|
+ BOOL isBackground = [HWDataManager getBoolWithKey:stringKeyAddSn(Const_file_Transfe_working_background)];
|
|
|
+
|
|
|
if ((isBackupsingType || isUploadingType || isDownloadingType ||isNasDownloadingType) && isBackground) {
|
|
|
HLog(@"后台保活中");
|
|
|
[cachesFileManager writeLogsWithMsg:@"Background working"];
|