diff --git a/HotReload.php b/HotReload.php index a6fd815..b017c1d 100644 --- a/HotReload.php +++ b/HotReload.php @@ -156,6 +156,10 @@ class HotReload extends AbstractProcess return; } + if ($this->isStop()) { + return; + } + $pid = (int)file_get_contents(storage('.swoole.pid')); if ($pid <= 0 || !Process::kill($pid, 0) || $this->isStop()) { return;