From a2151ae964d81a9e6d41520d0ed70b27c7f6a209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Sep 2020 11:59:54 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index b4b15b91..17e86f7b 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -12,6 +12,7 @@ namespace Snowflake\Process; use Exception; use Snowflake\Exception\ComponentException; use Snowflake\Snowflake; +use Swoole\Error; use Swoole\Event; use Swoole\Server; use Swoole\Timer; @@ -185,8 +186,8 @@ class ServerInotify extends Process { foreach ($this->watchFiles as $wd) { try { - @inotify_rm_watch($this->inotify, $wd); - } catch (\Error|Exception $exception) { + inotify_rm_watch($this->inotify, $wd); + } catch (\Throwable $exception) { $this->debug($exception->getMessage()); } finally { $this->watchFiles = [];