aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Environment/Modules/FriendsModule.cs18
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/FriendsModule.cs b/OpenSim/Region/Environment/Modules/FriendsModule.cs
index 7e12618..7078906 100644
--- a/OpenSim/Region/Environment/Modules/FriendsModule.cs
+++ b/OpenSim/Region/Environment/Modules/FriendsModule.cs
@@ -225,13 +225,23 @@ namespace OpenSim.Region.Environment.Modules
225 225
226 for (int j = 0; j < flfli.Count; j++) 226 for (int j = 0; j < flfli.Count; j++)
227 { 227 {
228 if (flfli[i].Friend == AgentId) 228 try
229 { 229 {
230 flfli[i].onlinestatus = false; 230 if (flfli[i].Friend == AgentId)
231 } 231 {
232 flfli[i].onlinestatus = false;
233 }
232 234
235 }
236
237 catch (IndexOutOfRangeException)
238 {
239 // Ignore the index out of range exception.
240 // This causes friend lists to get out of sync slightly.. however
241 // prevents a sim crash.
242 m_log.Info("[FRIEND]: Unable to enumerate last friendlist user. User logged off");
243 }
233 } 244 }
234
235 245
236 } 246 }
237 247