eee
This commit is contained in:
@@ -89,12 +89,12 @@ class HotReload extends AbstractProcess
|
|||||||
$this->addListen();
|
$this->addListen();
|
||||||
Event::cycle(function (): void {
|
Event::cycle(function (): void {
|
||||||
if ($this->isStop()) {
|
if ($this->isStop()) {
|
||||||
Event::del($this->pipe);
|
|
||||||
} else {
|
|
||||||
$read = inotify_read($this->pipe);
|
$read = inotify_read($this->pipe);
|
||||||
if (!empty($read)) {
|
if (!empty($read)) {
|
||||||
$this->reload();
|
$this->reload();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Event::exit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Event::wait();
|
Event::wait();
|
||||||
|
|||||||
Reference in New Issue
Block a user