We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11612ed commit c417ecdCopy full SHA for c417ecd
src/network/mcpe/NetworkSession.php
@@ -415,6 +415,11 @@ public function handleEncoded(string $payload) : void{
415
$this->logger->debug($packet->getName() . ": " . base64_encode($buffer));
416
throw PacketHandlingException::wrap($e, "Error processing " . $packet->getName());
417
}
418
+ if(!$this->isConnected()){
419
+ //handling this packet may have caused a disconnection
420
+ $this->logger->debug("Aborting batch processing due to server-side disconnection");
421
+ break;
422
+ }
423
424
}catch(PacketDecodeException|BinaryDataException $e){
425
$this->logger->logException($e);
0 commit comments