From b5937acf3c603f3bb5344fffdece150b75ff3074 Mon Sep 17 00:00:00 2001 From: xl Date: Wed, 4 Sep 2024 10:28:02 +0800 Subject: [PATCH] eee --- HotReload.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/HotReload.php b/HotReload.php index b017c1d..c4e684f 100644 --- a/HotReload.php +++ b/HotReload.php @@ -122,6 +122,10 @@ class HotReload extends AbstractProcess } Event::add($this->inotify, fn () => $this->check()); Event::cycle(fn () => function () { + var_dump($this->isStop()); + if ($this->isStop()) { + return; + } Event::dispatch(); }, true); Event::wait(); @@ -156,6 +160,7 @@ class HotReload extends AbstractProcess return; } + var_dump($this->isStop()); if ($this->isStop()) { return; }