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; }