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
parent
763ae779ff
commit
3326effb5f
|
@ -225,13 +225,23 @@ namespace OpenSim.Region.Environment.Modules
|
||||||
|
|
||||||
for (int j = 0; j < flfli.Count; j++)
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue