改名
This commit is contained in:
@@ -4,11 +4,11 @@ declare(strict_types=1);
|
|||||||
namespace HttpServer\Events;
|
namespace HttpServer\Events;
|
||||||
|
|
||||||
|
|
||||||
|
use Exception;
|
||||||
use HttpServer\Abstracts\Callback;
|
use HttpServer\Abstracts\Callback;
|
||||||
use Snowflake\Event;
|
use Snowflake\Event;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
use Swoole\Server;
|
use Swoole\Server;
|
||||||
use Exception;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class OnClose
|
* Class OnClose
|
||||||
@@ -33,7 +33,7 @@ class OnClose extends Callback
|
|||||||
if (!$event->exists(($name = $this->getName($clientInfo)))) {
|
if (!$event->exists(($name = $this->getName($clientInfo)))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$event->trigger($name, [$fd, $server]);
|
$event->trigger($name, [$server, $fd]);
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$this->addError($exception, 'throwable');
|
$this->addError($exception, 'throwable');
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user