变更
This commit is contained in:
@@ -51,6 +51,7 @@ class Scanner extends BaseProcess
|
|||||||
*/
|
*/
|
||||||
private function loadDirs(bool $isReload = FALSE)
|
private function loadDirs(bool $isReload = FALSE)
|
||||||
{
|
{
|
||||||
|
echo 'file tick ' . date('Y-m-d H:i:s') . PHP_EOL;
|
||||||
try {
|
try {
|
||||||
if ($this->isReloading) {
|
if ($this->isReloading) {
|
||||||
return;
|
return;
|
||||||
@@ -90,7 +91,7 @@ class Scanner extends BaseProcess
|
|||||||
}
|
}
|
||||||
if ($this->checkFile($path, $isReload)) {
|
if ($this->checkFile($path, $isReload)) {
|
||||||
$this->isReloading = TRUE;
|
$this->isReloading = TRUE;
|
||||||
Timer::after(3000, fn() => $this->timerReload());
|
$this->timerReload();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user