From 97d11abd4ee6a4d5181eca4720ad6cc72a41b651 Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 4 Sep 2024 10:25:34 +0800 Subject: [PATCH] eee --- HotReload.php | 4 ++++ 1 file changed, 4 insertions(+) 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;