This commit is contained in:
xl
2024-11-18 14:14:15 +08:00
parent c4bca4f88e
commit c068c2db4f
+2 -2
View File
@@ -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();