From 4d6bbce7009c6b958860c70e61c35136bac51950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Nov 2020 17:04:10 +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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index a78c7e42..17096737 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -51,7 +51,6 @@ class ServerInotify extends Process foreach ($this->dirs as $dir) { $this->loadByDir($dir); } - Timer::after(2000, [$this, 'tick']); } } @@ -67,9 +66,6 @@ class ServerInotify extends Process foreach ($this->dirs as $dir) { $this->loadByDir($dir, true); } - if ($this->isReloading) { - return; - } Timer::after(2000, [$this, 'tick']); } @@ -98,6 +94,7 @@ class ServerInotify extends Process break; } } + Timer::after(2000, [$this, 'tick']); } @@ -189,6 +186,7 @@ class ServerInotify extends Process */ public function timerReload() { + Timer::clearAll(); if ($this->isReloading) { return; }