From ebd643772df2809c2a1b545966171ff793ce6f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Jan 2022 17:53:27 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiri-engine/FileListen/Inotify.php b/kiri-engine/FileListen/Inotify.php index a6056363..540650f4 100644 --- a/kiri-engine/FileListen/Inotify.php +++ b/kiri-engine/FileListen/Inotify.php @@ -99,11 +99,12 @@ class Inotify public function reload($path) { $this->process->trigger_reload($path); + $this->process->int = -1; + $this->clearWatch(); foreach ($this->dirs as $root) { $this->watch($root); } - $this->process->int = -1; $this->isReloading = FALSE; }