From 4b5d9b64863f800156437ec1589e64cc2af014d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 5 Sep 2022 18:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Reload/Scanner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiri-engine/Reload/Scanner.php b/kiri-engine/Reload/Scanner.php index b437249f..bf4f4ebe 100644 --- a/kiri-engine/Reload/Scanner.php +++ b/kiri-engine/Reload/Scanner.php @@ -21,7 +21,7 @@ class Scanner extends BaseProcess public string $name = 'hot reload'; - protected bool $enable_coroutine = true; + protected bool $enable_coroutine = false; private array $dirs = []; @@ -41,7 +41,7 @@ class Scanner extends BaseProcess $this->dirs = Config::get('reload.inotify', []); $this->loadDirs(); - Timer::tick(3000, fn() => $this->loadByDir(false)); + Timer::tick(3000, fn() => $this->loadDirs()); }