diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index a61bc10d..861ebb1b 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -93,7 +93,9 @@ class Inotify //非重启类型 if (str_ends_with($ev['name'], '.php')) { - + if ($this->isReloading) { + break; + } Timer::after(3000, fn() => $this->reload($search)); $this->isReloading = TRUE; }