mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-14 22:01:59 +00:00
Fixed uncaught exception when retrieving a packet from the pool
This commit is contained in:
parent
52ea4feac0
commit
b11457d605
@ -120,6 +120,7 @@ use pocketmine\player\XboxLivePlayerInfo;
|
|||||||
use pocketmine\Server;
|
use pocketmine\Server;
|
||||||
use pocketmine\timings\Timings;
|
use pocketmine\timings\Timings;
|
||||||
use pocketmine\utils\AssumptionFailedError;
|
use pocketmine\utils\AssumptionFailedError;
|
||||||
|
use pocketmine\utils\BinaryDataException;
|
||||||
use pocketmine\utils\BinaryStream;
|
use pocketmine\utils\BinaryStream;
|
||||||
use pocketmine\utils\ObjectSet;
|
use pocketmine\utils\ObjectSet;
|
||||||
use pocketmine\utils\TextFormat;
|
use pocketmine\utils\TextFormat;
|
||||||
@ -414,7 +415,7 @@ class NetworkSession{
|
|||||||
throw PacketHandlingException::wrap($e, "Error processing " . $packet->getName());
|
throw PacketHandlingException::wrap($e, "Error processing " . $packet->getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}catch(PacketDecodeException $e){
|
}catch(PacketDecodeException|BinaryDataException $e){
|
||||||
$this->logger->logException($e);
|
$this->logger->logException($e);
|
||||||
throw PacketHandlingException::wrap($e, "Packet batch decode error");
|
throw PacketHandlingException::wrap($e, "Packet batch decode error");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user