mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user