This commit is contained in:
2022-09-05 18:41:37 +08:00
parent 4b5d9b6486
commit 4ea5945101
+1 -3
View File
@@ -41,7 +41,7 @@ class Scanner extends BaseProcess
$this->dirs = Config::get('reload.inotify', []);
$this->loadDirs();
Timer::tick(3000, fn() => $this->loadDirs());
Timer::tick(3000, fn() => $this->loadDirs(true));
}
@@ -66,8 +66,6 @@ class Scanner extends BaseProcess
}
} catch (\Throwable $throwable) {
$this->logger->error($throwable->getMessage(), [$throwable]);
} finally {
$this->loadDirs($isReload);
}
}