Wrapped the contents of the IncomingPacketHandler loop in a try/catch statement

prioritization
John Hurliman 2009-10-17 17:19:18 -07:00
parent 3a63de8d02
commit e28ac42486
1 changed files with 9 additions and 2 deletions

View File

@ -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)