This commit is contained in:
as2252258@163.com
2021-05-04 01:33:08 +08:00
parent 5bbc190f8c
commit c3b67d5969
10 changed files with 28 additions and 39 deletions
+2 -3
View File
@@ -48,9 +48,8 @@ class OnReceive extends Callback
public function onHandler(Server $server, int $fd, int $reID, string $data): mixed
{
try {
defer(function () {
fire(Event::SYSTEM_RESOURCE_RELEASES);
});
defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES));
$request = $this->_request($fd, $data, $reID);
if (($node = $this->router->find_path($request)) === null) {
return $server->send($fd, Json::encode(['state' => 404]));