From 8f80811da661811959580b198cc352e2f259b63c Mon Sep 17 00:00:00 2001 From: xl Date: Mon, 18 Nov 2024 16:51:24 +0800 Subject: [PATCH] eee --- Abstracts/HotReload.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Abstracts/HotReload.php b/Abstracts/HotReload.php index be3b7b4..e36a909 100644 --- a/Abstracts/HotReload.php +++ b/Abstracts/HotReload.php @@ -137,9 +137,10 @@ class HotReload extends AbstractProcess */ protected function clear(): void { - foreach ($this->watches as $watch) { - @inotify_rm_watch($this->pipe, $watch); - } + fclose($this->pipe); + + $this->pipe = inotify_init(); + $this->watches = []; }