changes on updates

This commit is contained in:
UbitUmarov
2018-12-30 02:41:13 +00:00
parent cf89799c0b
commit 817b622b79
3 changed files with 9 additions and 21 deletions

View File

@@ -855,7 +855,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
LLUDPClient udpClient, Packet packet, ThrottleOutPacketType category, bool allowSplitting, UnackedPacketMethod method)
{
// CoarseLocationUpdate packets cannot be split in an automated way
if (allowSplitting && packet.HasVariableBlocks && packet.Type != PacketType.CoarseLocationUpdate)
if (allowSplitting && packet.HasVariableBlocks && packet.Type != PacketType.CoarseLocationUpdate &&
packet.Length + 20 > MTU)
{
byte[][] datas = packet.ToBytesMultiple();
int packetCount = datas.Length;