diff --git a/ProxyNetworkInterface.php b/ProxyNetworkInterface.php index 75ccb96..d89e15c 100644 --- a/ProxyNetworkInterface.php +++ b/ProxyNetworkInterface.php @@ -211,7 +211,7 @@ private function onPacketReceive(string $buffer): void case ForwardPacket::NETWORK_ID: /** @var ForwardPacket $pk */ if (($session = $this->getSession($socketId)) === null) { - throw new PacketHandlingException('Socket with id (' . $socketId . ") doesn't have a session."); + break; // might be data arriving from the client after the server has closed the connection } $session->handleEncoded($pk->payload);