Wrapped the contents of the IncomingPacketHandler loop in a try/catch statement
parent
3a63de8d02
commit
e28ac42486
|
@ -716,8 +716,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
while (base.IsRunning)
|
while (base.IsRunning)
|
||||||
{
|
{
|
||||||
if (packetInbox.Dequeue(100, ref incomingPacket))
|
try
|
||||||
Util.FireAndForget(ProcessInPacket, incomingPacket);
|
{
|
||||||
|
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)
|
if (packetInbox.Count > 0)
|
||||||
|
|
Loading…
Reference in New Issue