mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Don't handle remaining packets in a batch when an earlier one triggered a disconnect
This commit is contained in:
parent
8316e00927
commit
32836cbfb8
@ -79,6 +79,10 @@ class PlayerNetworkSessionAdapter extends NetworkSession{
|
||||
}
|
||||
|
||||
public function handleDataPacket(DataPacket $packet){
|
||||
if(!$this->player->isConnected()){
|
||||
return;
|
||||
}
|
||||
|
||||
$timings = Timings::getReceiveDataPacketTimings($packet);
|
||||
$timings->startTiming();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user