From fa76b5170aafe8c8344b151274536892628971ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sat, 15 Jan 2022 10:23:57 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- kiri-engine/FileListen/Inotify.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index ccd20151..fe83b8ea 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -86,13 +86,12 @@ class Inotify continue; } - - var_dump($ev); + $search = array_search($ev['wd'], $this->watchFiles); //非重启类型 if (str_ends_with($ev['name'], '.php')) { - Timer::after(3000, fn() => $this->reload($ev['name'])); + Timer::after(3000, fn() => $this->reload($search)); $this->isReloading = TRUE; } }