改名
This commit is contained in:
@@ -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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user