This commit is contained in:
2021-11-19 11:13:32 +08:00
parent 786f96363b
commit 3943142b86
+4
View File
@@ -63,6 +63,8 @@ class Inotify
if (!($events = inotify_read($this->inotify))) {
return;
}
var_dump($this->process->isReloading);
if ($this->process->isReloading) {
if (!$this->process->isReloadingOut) {
$this->process->isReloadingOut = true;
@@ -97,6 +99,8 @@ class Inotify
$this->process->isReloading = true;
$this->process->trigger_reload();
var_dump('trigger_reload');
$this->clearWatch();
foreach ($this->dirs as $root) {
$this->watch($root);