From ba804c4d9c98ae357923008d97019a62a7df03f8 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 19 Nov 2021 03:42:23 +0800 Subject: [PATCH] 1 --- kiri-engine/FileListen/HotReload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index 7066fdb3..bc7b630a 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -78,7 +78,9 @@ class HotReload extends Command $this->trigger_reload(); Process::signal(SIGKILL, [$this, 'onSignal']); Process::signal(SIGTERM, [$this, 'onSignal']); - $this->driver->start(); + Coroutine\run(function (){ + $this->driver->start(); + }); return 0; }