* Added the same catch on the 2nd place that objects fail to lock.

0.6.0-stable
Teravus Ovares 2008-05-14 02:16:51 +00:00
parent fd035ec1f8
commit 60146691ea
1 changed files with 7 additions and 0 deletions

View File

@ -238,6 +238,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");
}
for (int j = 0; j < flfli.Count; j++)
{