From 4c2068482a732e717e1df846473a05288b371906 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 3 Jul 2021 21:10:13 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnClose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Events/OnClose.php b/HttpServer/Events/OnClose.php index 9525e7c8..51acf20c 100644 --- a/HttpServer/Events/OnClose.php +++ b/HttpServer/Events/OnClose.php @@ -27,7 +27,7 @@ class OnClose extends Callback { try { defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES)); - $clientInfo = $server->getClientInfo($fd); + $clientInfo = $server->getClientInfo($fd,null, true); Event::trigger($this->getName($clientInfo, Event::SERVER_CLIENT_CLOSE), [$server, $fd]); } catch (\Throwable $exception) {