From 60146691ea0d2d8be753cccad43329d1147f8e3c Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 14 May 2008 02:16:51 +0000 Subject: * Added the same catch on the 2nd place that objects fail to lock. --- OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs index 9078a14..2d6e27f 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs @@ -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++) { -- cgit v1.1