This commit is contained in:
2022-09-05 18:56:20 +08:00
parent 6a3aa12f1d
commit 92024adb53
+2 -1
View File
@@ -51,6 +51,7 @@ class Scanner extends BaseProcess
*/
private function loadDirs(bool $isReload = FALSE)
{
echo 'file tick ' . date('Y-m-d H:i:s') . PHP_EOL;
try {
if ($this->isReloading) {
return;
@@ -90,7 +91,7 @@ class Scanner extends BaseProcess
}
if ($this->checkFile($path, $isReload)) {
$this->isReloading = TRUE;
Timer::after(3000, fn() => $this->timerReload());
$this->timerReload();
break;
}
}