From f7a29ad8b5e954fb82340b69a034639d14f60af9 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 9 Dec 2015 16:42:24 +0000 Subject: [PATCH] minor cleanup --- .../ClientStack/Linden/UDP/LLUDPServer.cs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 3d6c6a8609..672ed3c8e3 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs @@ -2022,26 +2022,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP Scene.ThreadAlive(1); 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); - if (incomingPacket != null) + if (incomingPacket != null && IsRunningInbound) { - ProcessInPacket(incomingPacket);//, incomingPacket); Util.FireAndForget(ProcessInPacket, incomingPacket); + ProcessInPacket(incomingPacket); if (UsePools) m_incomingPacketPool.ReturnObject(incomingPacket); - } - incomingPacket = null; + incomingPacket = null; + } } catch(Exception ex) {