This commit is contained in:
xl
2024-09-04 10:28:02 +08:00
parent 97d11abd4e
commit b5937acf3c
+5
View File
@@ -122,6 +122,10 @@ class HotReload extends AbstractProcess
}
Event::add($this->inotify, fn () => $this->check());
Event::cycle(fn () => function () {
var_dump($this->isStop());
if ($this->isStop()) {
return;
}
Event::dispatch();
}, true);
Event::wait();
@@ -156,6 +160,7 @@ class HotReload extends AbstractProcess
return;
}
var_dump($this->isStop());
if ($this->isStop()) {
return;
}