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; }