From 97a2ca29b0ecb8ec89306cea1cb0f2666a535f21 Mon Sep 17 00:00:00 2001 From: Yurun Date: Mon, 19 Dec 2022 09:12:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Workerman=20v4.1.5=20?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Components/workerman/src/Server/Util/LocalServerUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/workerman/src/Server/Util/LocalServerUtil.php b/src/Components/workerman/src/Server/Util/LocalServerUtil.php index 37829bb525..0d0ebf0e12 100644 --- a/src/Components/workerman/src/Server/Util/LocalServerUtil.php +++ b/src/Components/workerman/src/Server/Util/LocalServerUtil.php @@ -90,7 +90,7 @@ public function sendRaw(string $data, $clientId = null, ?string $serverName = nu { /** @var TcpConnection|null $connection */ $connection = $worker->connections[$tmpClientId] ?? null; - if (null !== $connection && $connection->send($data, !isset($connection->websocketCurrentFrameLength))) + if (null !== $connection && $connection->send($data, !isset($connection->websocketCurrentFrameLength) && !isset($connection->context->websocketCurrentFrameLength))) { ++$success; }