* Applying Melanie's FriendList related crash patch. She discovered that .NET throws a different error then mono does. Thanks Melanie!

0.6.0-stable
Teravus Ovares 2008-05-14 02:14:05 +00:00
parent 3c7e6b0c1e
commit fd035ec1f8
1 changed files with 8 additions and 1 deletions

View File

@ -256,6 +256,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
// prevents a sim crash.
m_log.Info("[FRIEND]: Unable to enumerate last friendlist user. User logged off");
}
catch (ArgumentOutOfRangeException)
{
// Ignore the index out of range exception.
// This causes friend lists to get out of sync slightly.. however
// prevents a sim crash.
m_log.Info("[FRIEND]: Unable to enumerate last friendlist user. User logged off");
}
}
}
@ -498,4 +505,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
#endregion
}
}
}