diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 6e0d4cfe..26e0e932 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -64,12 +64,12 @@ class ServerInotify extends Process */ public function tick() { - $this->loadByDir(APP_PATH . 'app', true); - $this->loadByDir(APP_PATH . 'routes', true); - $this->loadByDir(__DIR__ . '/../../', true); if ($this->isReloading) { return; } + $this->loadByDir(APP_PATH . 'app', true); + $this->loadByDir(APP_PATH . 'routes', true); + $this->loadByDir(__DIR__ . '/../../', true); Timer::after(2000, [$this, 'tick']); }