| | |
| | | nowFbo = fbofile.files[i];
|
| | | int file_downloadNum=i;//设置当前下载文件的索引
|
| | | if(now_download_state == DownLoadState_DownLoadCancel) {
|
| | | nowFbo.setDownload_state(DownLoadState_DownLoadCancel);
|
| | | nowFbo.setDownload_flag(DownloadFlag_Fail);
|
| | | fbofile.files[i].setDownload_state(DownLoadState_DownLoadCancel);
|
| | | fbofile.files[i].setDownload_flag(DownloadFlag_Fail);
|
| | | |
| | | FGCD_Task_Thread_SQL.updateFgcd_Filedownload_TableCmdByDevId(pool,fbofile,file_downloadNum);
|
| | | continue;
|
| | | }
|
| | | if(nowFbo.download_flag != DownloadFlag_Start) {
|
| | |
| | | now_download_state = FGCD_ComBase.CMD_DownLoadFBDFile_Over;
|
| | | fbofile.setStop_reason(FialReason_UserCancel);
|
| | | //手动终止下载命令
|
| | | nowFbo.setDownload_flag(DownloadFlag_Fail);
|
| | | nowFbo.setDownload_state(DownLoadState_DownLoadCancel);
|
| | | fbofile.files[file_downloadNum].setDownload_flag(DownloadFlag_Fail);
|
| | | fbofile.files[file_downloadNum].setDownload_state(DownLoadState_DownLoadCancel);
|
| | | fbofile.op_cmd = FGCD_ComBase.CMD_DownLoadFBDFile_Over_ACK;
|
| | | FGCD_Task_Thread_SQL.updateFgcd_Filedownload_TableCmdByDevId(pool, fbofile,file_downloadNum);
|
| | | continue;
|