disable useless and totally wrong incoming Pools
parent
42e5ee4c4b
commit
bbe55df6c6
|
@ -522,8 +522,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
Random rnd = new Random(Util.EnvironmentTickCount());
|
Random rnd = new Random(Util.EnvironmentTickCount());
|
||||||
m_animationSequenceNumber = rnd.Next(11474826);
|
m_animationSequenceNumber = rnd.Next(11474826);
|
||||||
|
|
||||||
if (usePools)
|
// if (usePools)
|
||||||
EnablePools();
|
// EnablePools();
|
||||||
|
DisablePools();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
|
@ -2029,8 +2030,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
ProcessInPacket(incomingPacket);
|
ProcessInPacket(incomingPacket);
|
||||||
|
|
||||||
if (UsePools)
|
if (UsePools)
|
||||||
|
{
|
||||||
|
incomingPacket.Client = null;
|
||||||
m_incomingPacketPool.ReturnObject(incomingPacket);
|
m_incomingPacketPool.ReturnObject(incomingPacket);
|
||||||
|
}
|
||||||
incomingPacket = null;
|
incomingPacket = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue