From c068c2db4f79505b93c87cc37c9f82b34e52afca Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 18 Nov 2024 14:14:15 +0800 Subject: [PATCH] eee --- Abstracts/HotReload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();