This commit is contained in:
2020-09-07 11:59:54 +08:00
parent db09631b08
commit a2151ae964
+3 -2
View File
@@ -12,6 +12,7 @@ namespace Snowflake\Process;
use Exception; use Exception;
use Snowflake\Exception\ComponentException; use Snowflake\Exception\ComponentException;
use Snowflake\Snowflake; use Snowflake\Snowflake;
use Swoole\Error;
use Swoole\Event; use Swoole\Event;
use Swoole\Server; use Swoole\Server;
use Swoole\Timer; use Swoole\Timer;
@@ -185,8 +186,8 @@ class ServerInotify extends Process
{ {
foreach ($this->watchFiles as $wd) { foreach ($this->watchFiles as $wd) {
try { try {
@inotify_rm_watch($this->inotify, $wd); inotify_rm_watch($this->inotify, $wd);
} catch (\Error|Exception $exception) { } catch (\Throwable $exception) {
$this->debug($exception->getMessage()); $this->debug($exception->getMessage());
} finally { } finally {
$this->watchFiles = []; $this->watchFiles = [];