From e28ac424861deafe6083b497b546cb64352f5512 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Sat, 17 Oct 2009 17:19:18 -0700 Subject: [PATCH] Wrapped the contents of the IncomingPacketHandler loop in a try/catch statement --- OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 8bfab6a107..7a403aae96 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -716,8 +716,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP while (base.IsRunning) { - if (packetInbox.Dequeue(100, ref incomingPacket)) - Util.FireAndForget(ProcessInPacket, incomingPacket); + try + { + if (packetInbox.Dequeue(100, ref incomingPacket)) + Util.FireAndForget(ProcessInPacket, incomingPacket); + } + catch (Exception ex) + { + m_log.Error("[LLUDPSERVER]: Error in the incoming packet handler loop: " + ex.Message, ex); + } } if (packetInbox.Count > 0)