This commit is contained in:
Dylan K. Taylor
2021-11-01 16:13:33 +00:00
parent f6480017ce
commit c3768b997a
2 changed files with 8 additions and 4 deletions

View File

@@ -348,6 +348,10 @@ class NetworkSession{
try{
foreach($stream->getPackets($this->packetPool, $this->packetSerializerContext, 500) as [$packet, $buffer]){
if($packet === null){
$this->logger->debug("Unknown packet: " . base64_encode($buffer));
throw new PacketHandlingException("Unknown packet received");
}
try{
$this->handleDataPacket($packet, $buffer);
}catch(PacketHandlingException $e){