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; }