diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 2ff7f817..df4762cb 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -73,13 +73,10 @@ class ServerInotify extends Process $this->loadByDir(APP_PATH . 'routes', true); $this->loadByDir(__DIR__ . '/../../', true); - Coroutine::sleep(3); - - $this->tick(); + Timer::after(2000, [$this, 'tick']); } - /** * @param $path * @param bool $isReload @@ -103,7 +100,6 @@ class ServerInotify extends Process } - /** * @param $value * @param $isReload