diff --git a/kiri-engine/FileListen/HotReload.php b/kiri-engine/FileListen/HotReload.php index bc7b630a..15f109ea 100644 --- a/kiri-engine/FileListen/HotReload.php +++ b/kiri-engine/FileListen/HotReload.php @@ -78,7 +78,7 @@ class HotReload extends Command $this->trigger_reload(); Process::signal(SIGKILL, [$this, 'onSignal']); Process::signal(SIGTERM, [$this, 'onSignal']); - Coroutine\run(function (){ + Coroutine::create(function () { $this->driver->start(); }); return 0; @@ -150,7 +150,6 @@ class HotReload extends Command } - /** * 重启 *