From fc6baa83a7ec9de8226a38aa1373e340032cfc0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 19 Nov 2021 10:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/FileListen/HotReload.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index eb3327c7..50eef1f9 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -71,8 +71,7 @@ class HotReload extends Command // TODO: Implement onHandler() method. set_error_handler([$this, 'onErrorHandler']); $this->dirs = Config::get('inotify', [APP_PATH . 'app']); - - Runtime::enableCoroutine(false); + swoole_async_set(['enable_coroutine' => false]); if (!extension_loaded('inotify')) { $this->driver = Kiri::getDi()->get(Scaner::class, [$this->dirs, $this]); } else {