Stuck an exception handler in the friends routine until I have time to debug it more seriously.(or someone else does). It prints a 'Unable to enumerate' message on the console.. so it won't be forgotten.

It isn't critical data atm though.
0.6.0-stable
Teravus Ovares 2008-04-29 16:26:49 +00:00
parent 763ae779ff
commit 3326effb5f
1 changed files with 14 additions and 4 deletions

View File

@ -225,13 +225,23 @@ namespace OpenSim.Region.Environment.Modules
for (int j = 0; j < flfli.Count; j++)
{
if (flfli[i].Friend == AgentId)
try
{
flfli[i].onlinestatus = false;
}
if (flfli[i].Friend == AgentId)
{
flfli[i].onlinestatus = false;
}
}
catch (IndexOutOfRangeException)
{
// 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");
}
}
}