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.
This commit is contained in:
Adam Frisby
2007-04-22 17:31:51 +00:00
parent 60047aa5a6
commit 869b39c451
2 changed files with 17 additions and 1 deletions

View File

@@ -731,7 +731,17 @@ namespace OpenSim
{
if (!NeedAck.ContainsKey(Pack.Header.Sequence))
{
NeedAck.Add(Pack.Header.Sequence, Pack);
try
{
NeedAck.Add(Pack.Header.Sequence, Pack);
}
catch (Exception e)
{
// Ignore
// Seems to throw a exception here occasionally
// of 'duplicate key' despite being locked.
// !?!?!?
}
}
else
{