From 3f5edce2ca8f278af571f85b538cb822c2c187d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 17 Nov 2020 17:47:24 +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, 1 insertion(+), 5 deletions(-) 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