Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit b078f8b

Browse files
committed
🐛 修复主动退出时FileCheck多次输出
1 parent c9ec2db commit b078f8b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

inc/cluster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ class FilesCheck {
231231

232232
public function __construct($filesList) {
233233
$this->filesList = $filesList;
234+
mlog("检查策略:hash");
234235
}
235236

236237
public function FilesCheckerhash() {
@@ -241,6 +242,7 @@ public function FilesCheckerhash() {
241242
global $shouldExit;
242243
global $DOWNLOAD_DIR;
243244
if ($shouldExit) {
245+
return;
244246
break;
245247
}
246248
if (!file_exists($DOWNLOAD_DIR.'/'.substr($file->hash, 0, 2).'/'.$file->hash)){

main.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ function registerSigintHandler() {
5454
//下载文件列表
5555
$cluster = new cluster($tokendata['token'],VERSION);
5656
$files = $cluster->getFileList();
57-
mlog("检查策略:hash");
5857
$FilesCheck = new FilesCheck($files);
5958
$Missfile = $FilesCheck->FilesCheckerhash();
6059
if (is_array($Missfile)){

0 commit comments

Comments
 (0)