From 62339e8bd061aaf848e32c489bc3ee546ec0a1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Mar 2021 16:39:35 +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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 0c91a7f7..9e47fe6e 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -40,6 +40,13 @@ class ServerInotify extends Process public function onHandler(\Swoole\Process $process): void { set_error_handler([$this, 'onErrorHandler']); + if (env('debug') !== 'true') { + Timer::tick(100000, function () { + + }); + return; + } + $this->dirs = Config::get('inotify', false, [APP_PATH]); if (extension_loaded('inotify')) { $this->inotify = inotify_init();