From 2204917095e08f423efe206df7aac0848e1b9a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Nov 2020 16:59:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Process/ServerInotify.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index ece6ef4d..5428c3f8 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -174,11 +174,9 @@ class ServerInotify extends Process { $this->isReloading = true; $this->trigger_reload(); - if (Snowflake::isLinux()) { - $this->clearWatch(); - foreach ($this->dirs as $root) { - $this->watch($root); - } + $this->clearWatch(); + foreach ($this->dirs as $root) { + $this->watch($root); } $this->int = -1; $this->isReloading = FALSE;