Skip to content

Commit e6f6c1f

Browse files
committed
Remove error when session is already deleted
1 parent d945ac1 commit e6f6c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProxyNetworkInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private function onPacketReceive(string $buffer): void
211211
case ForwardPacket::NETWORK_ID:
212212
/** @var ForwardPacket $pk */
213213
if (($session = $this->getSession($socketId)) === null) {
214-
throw new PacketHandlingException('Socket with id (' . $socketId . ") doesn't have a session.");
214+
break; // might be data arriving from the client after the server has closed the connection
215215
}
216216

217217
$session->handleEncoded($pk->payload);

0 commit comments

Comments
 (0)