mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
disable useless and totally wrong incoming Pools
This commit is contained in:
@@ -522,8 +522,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
Random rnd = new Random(Util.EnvironmentTickCount());
|
||||
m_animationSequenceNumber = rnd.Next(11474826);
|
||||
|
||||
if (usePools)
|
||||
EnablePools();
|
||||
// if (usePools)
|
||||
// EnablePools();
|
||||
DisablePools();
|
||||
}
|
||||
|
||||
public void Start()
|
||||
@@ -2027,10 +2028,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
if (incomingPacket != null && IsRunningInbound)
|
||||
{
|
||||
ProcessInPacket(incomingPacket);
|
||||
|
||||
|
||||
if (UsePools)
|
||||
{
|
||||
incomingPacket.Client = null;
|
||||
m_incomingPacketPool.ReturnObject(incomingPacket);
|
||||
|
||||
}
|
||||
incomingPacket = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user