diff options
author | John Hurliman | 2009-10-17 17:19:18 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-17 17:19:18 -0700 |
commit | e28ac424861deafe6083b497b546cb64352f5512 (patch) | |
tree | 6db7161d6274a9378972e51538b0dfb4807dcfc2 /OpenSim/Region | |
parent | Added a description for RegionType (diff) | |
download | opensim-SC_OLD-e28ac424861deafe6083b497b546cb64352f5512.zip opensim-SC_OLD-e28ac424861deafe6083b497b546cb64352f5512.tar.gz opensim-SC_OLD-e28ac424861deafe6083b497b546cb64352f5512.tar.bz2 opensim-SC_OLD-e28ac424861deafe6083b497b546cb64352f5512.tar.xz |
Wrapped the contents of the IncomingPacketHandler loop in a try/catch statement
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 8bfab6a..7a403aa 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -716,8 +716,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
716 | 716 | ||
717 | while (base.IsRunning) | 717 | while (base.IsRunning) |
718 | { | 718 | { |
719 | if (packetInbox.Dequeue(100, ref incomingPacket)) | 719 | try |
720 | Util.FireAndForget(ProcessInPacket, incomingPacket); | 720 | { |
721 | if (packetInbox.Dequeue(100, ref incomingPacket)) | ||
722 | Util.FireAndForget(ProcessInPacket, incomingPacket); | ||
723 | } | ||
724 | catch (Exception ex) | ||
725 | { | ||
726 | m_log.Error("[LLUDPSERVER]: Error in the incoming packet handler loop: " + ex.Message, ex); | ||
727 | } | ||
721 | } | 728 | } |
722 | 729 | ||
723 | if (packetInbox.Count > 0) | 730 | if (packetInbox.Count > 0) |