This commit is contained in:
as2252258@163.com
2021-07-03 21:12:21 +08:00
parent 4c2068482a
commit 6612040b3a
2 changed files with 387 additions and 384 deletions
+1 -2
View File
@@ -27,9 +27,8 @@ class OnClose extends Callback
{
try {
defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES));
$clientInfo = $server->getClientInfo($fd,null, true);
Event::trigger($this->getName($clientInfo, Event::SERVER_CLIENT_CLOSE), [$server, $fd]);
Event::trigger(Event::SERVER_CLIENT_CLOSE, [$server, $fd]);
} catch (\Throwable $exception) {
$this->addError($exception, 'throwable');
}