eee
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user