Skip to content

Commit 7d24ddb

Browse files
author
zhangjincheng
committed
pack
1 parent f1d0782 commit 7d24ddb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Pack/Aspect/PackAspect.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ public function autoBoostSend($fd, $data, $topic = null): bool
146146
{
147147
if ($data == null) return false;
148148
$clientInfo = Server::$instance->getClientInfo($fd);
149-
$packConfig = $this->packConfigs[$clientInfo->getServerPort()];
149+
$packConfig = $this->packConfigs[$clientInfo->getServerPort()]??null;
150+
if($packConfig==null) return false;
150151
$pack = $this->packTools[$packConfig->getPackTool()];
151152
$data = $pack->pack($data, $packConfig, $topic);
152153
if (Server::$instance->isEstablished($fd)) {

0 commit comments

Comments
 (0)