This commit is contained in:
xl
2024-11-18 16:51:24 +08:00
parent e46ad90c46
commit 8f80811da6
+4 -3
View File
@@ -137,9 +137,10 @@ class HotReload extends AbstractProcess
*/ */
protected function clear(): void protected function clear(): void
{ {
foreach ($this->watches as $watch) { fclose($this->pipe);
@inotify_rm_watch($this->pipe, $watch);
} $this->pipe = inotify_init();
$this->watches = []; $this->watches = [];
} }