minor cleanup
parent
ce44ce447b
commit
f7a29ad8b5
|
@ -2022,27 +2022,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
Scene.ThreadAlive(1);
|
Scene.ThreadAlive(1);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
// HACK: This is a test to try and rate limit packet handling on Mono.
|
|
||||||
// If it works, a more elegant solution can be devised
|
|
||||||
if (Util.FireAndForgetCount() < 2)
|
|
||||||
{
|
|
||||||
//m_log.Debug("[LLUDPSERVER]: Incoming packet handler is sleeping");
|
|
||||||
Thread.Sleep(30);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
incomingPacket = packetInbox.Dequeue(250);
|
incomingPacket = packetInbox.Dequeue(250);
|
||||||
|
|
||||||
if (incomingPacket != null)
|
if (incomingPacket != null && IsRunningInbound)
|
||||||
{
|
{
|
||||||
ProcessInPacket(incomingPacket);//, incomingPacket); Util.FireAndForget(ProcessInPacket, incomingPacket);
|
ProcessInPacket(incomingPacket);
|
||||||
|
|
||||||
if (UsePools)
|
if (UsePools)
|
||||||
m_incomingPacketPool.ReturnObject(incomingPacket);
|
m_incomingPacketPool.ReturnObject(incomingPacket);
|
||||||
}
|
|
||||||
|
|
||||||
incomingPacket = null;
|
incomingPacket = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
m_log.Error("[LLUDPSERVER]: Error in the incoming packet handler loop: " + ex.Message, ex);
|
m_log.Error("[LLUDPSERVER]: Error in the incoming packet handler loop: " + ex.Message, ex);
|
||||||
|
|
Loading…
Reference in New Issue