aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/SimClient.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-04-22 17:31:51 +0000
committerAdam Frisby2007-04-22 17:31:51 +0000
commit869b39c451ca1ce2dca4e651d6eada0c5b213f06 (patch)
tree0bf737e9ac76b6961a271a79069dbe745b3d9a10 /OpenSim.RegionServer/SimClient.cs
parent=== Dedicated to Jesse. === (diff)
downloadopensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.zip
opensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.tar.gz
opensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.tar.bz2
opensim-SC_OLD-869b39c451ca1ce2dca4e651d6eada0c5b213f06.tar.xz
SimClient: Added Try/Catch over block of code which is triggering an exception that should not be triggerable. (Duplicate key after dictionary is locked, checked for key, then added) [!?!?]
AvatarUpdate: Added check for if the physics actor is null before attempting to access it.
Diffstat (limited to 'OpenSim.RegionServer/SimClient.cs')
-rw-r--r--OpenSim.RegionServer/SimClient.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim.RegionServer/SimClient.cs b/OpenSim.RegionServer/SimClient.cs
index e4c445b..d716bd6 100644
--- a/OpenSim.RegionServer/SimClient.cs
+++ b/OpenSim.RegionServer/SimClient.cs
@@ -731,7 +731,17 @@ namespace OpenSim
731 { 731 {
732 if (!NeedAck.ContainsKey(Pack.Header.Sequence)) 732 if (!NeedAck.ContainsKey(Pack.Header.Sequence))
733 { 733 {
734 NeedAck.Add(Pack.Header.Sequence, Pack); 734 try
735 {
736 NeedAck.Add(Pack.Header.Sequence, Pack);
737 }
738 catch (Exception e)
739 {
740 // Ignore
741 // Seems to throw a exception here occasionally
742 // of 'duplicate key' despite being locked.
743 // !?!?!?
744 }
735 } 745 }
736 else 746 else
737 { 747 {