mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
NetworkSession: Stop processing batch if player gets disconnected during handling
This commit is contained in:
parent
34d64be427
commit
57e5b1309d
@ -99,7 +99,7 @@ class NetworkSession{
|
||||
//TODO: decryption if enabled
|
||||
|
||||
$stream = new PacketStream(NetworkCompression::decompress($payload));
|
||||
while(!$stream->feof()){
|
||||
while(!$stream->feof() and $this->player->isConnected()){
|
||||
$this->handleDataPacket(PacketPool::getPacket($stream->getString()));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user