From 758bd650b576fd122ea4ed524c840be750c8fa91 Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 19 Nov 2021 03:43:00 +0800 Subject: [PATCH] 1 --- 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 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 } - /** * 重启 *