Wrapped the contents of the IncomingPacketHandler loop in a try/catch statement
parent
3a63de8d02
commit
e28ac42486
|
@ -715,10 +715,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
IncomingPacket incomingPacket = null;
|
IncomingPacket incomingPacket = null;
|
||||||
|
|
||||||
while (base.IsRunning)
|
while (base.IsRunning)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (packetInbox.Dequeue(100, ref incomingPacket))
|
if (packetInbox.Dequeue(100, ref incomingPacket))
|
||||||
Util.FireAndForget(ProcessInPacket, 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)
|
||||||
m_log.Warn("[LLUDPSERVER]: IncomingPacketHandler is shutting down, dropping " + packetInbox.Count + " packets");
|
m_log.Warn("[LLUDPSERVER]: IncomingPacketHandler is shutting down, dropping " + packetInbox.Count + " packets");
|
||||||
|
|
Loading…
Reference in New Issue