diff options
author | Teravus Ovares | 2008-04-29 16:26:49 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-29 16:26:49 +0000 |
commit | 3326effb5fb0ec4ac84cb63a693a7025ad13f314 (patch) | |
tree | 62a9c9b161fbc68185a80f8f6b953cecffd8e2b2 /OpenSim/Region/Environment | |
parent | From: Dr Scofield <hud@zurich.ibm.com> (diff) | |
download | opensim-SC_OLD-3326effb5fb0ec4ac84cb63a693a7025ad13f314.zip opensim-SC_OLD-3326effb5fb0ec4ac84cb63a693a7025ad13f314.tar.gz opensim-SC_OLD-3326effb5fb0ec4ac84cb63a693a7025ad13f314.tar.bz2 opensim-SC_OLD-3326effb5fb0ec4ac84cb63a693a7025ad13f314.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Modules/FriendsModule.cs | 18 |
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 | ||