mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Merge branch 'stable'
This commit is contained in:
@ -260,7 +260,11 @@ class NetworkSession{
|
||||
Timings::$playerNetworkReceiveDecompressTimer->stopTiming();
|
||||
}
|
||||
|
||||
$count = 0;
|
||||
while(!$stream->feof() and $this->connected){
|
||||
if($count++ >= 500){
|
||||
throw new BadPacketException("Too many packets in a single batch");
|
||||
}
|
||||
try{
|
||||
$pk = PacketPool::getPacket($stream->getString());
|
||||
}catch(BinaryDataException $e){
|
||||
|
Reference in New Issue
Block a user