diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index c3b0aaa..03798b7 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -89,12 +89,12 @@ class HotReload extends AbstractProcess $this->addListen(); Event::cycle(function (): void { if ($this->isStop()) { - Event::del($this->pipe); - } else { $read = inotify_read($this->pipe); if (!empty($read)) { $this->reload(); } + } else { + Event::exit(); } }); Event::wait();