Skip to content

Commit

Permalink
Remove error when session is already deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Jan 9, 2024
1 parent d945ac1 commit e6f6c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProxyNetworkInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e6f6c1f

Please sign in to comment.