From a89061c90c331949911caac435cdc24074dc4811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 1 Mar 2022 15:05:50 +0800 Subject: [PATCH] modify plugin name --- kiri-engine/FileListen/Inotify.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }