diff options
author | Justin Clark-Casey (justincc) | 2011-11-15 16:05:08 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-15 16:05:08 +0000 |
commit | 2b5b4ac167bf5d1383a816447cb2d42364246aa8 (patch) | |
tree | 1c30040d00442379c3969c1f0eba915cc2f17202 | |
parent | For clients that are entering a simulator from initial login, stop executing ... (diff) | |
download | opensim-SC_OLD-2b5b4ac167bf5d1383a816447cb2d42364246aa8.zip opensim-SC_OLD-2b5b4ac167bf5d1383a816447cb2d42364246aa8.tar.gz opensim-SC_OLD-2b5b4ac167bf5d1383a816447cb2d42364246aa8.tar.bz2 opensim-SC_OLD-2b5b4ac167bf5d1383a816447cb2d42364246aa8.tar.xz |
refactor: rename m_NeedsListOfFriends => m_NeedsListOfOnlineFriends to better reflect its actual function
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index f84033b..d28ad0f 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -92,7 +92,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
92 | /// Maintain a record of viewers that need to be sent notifications for friends that are online. This only | 92 | /// Maintain a record of viewers that need to be sent notifications for friends that are online. This only |
93 | /// needs to be done on login. Subsequent online/offline friend changes are sent by a different mechanism. | 93 | /// needs to be done on login. Subsequent online/offline friend changes are sent by a different mechanism. |
94 | /// </summary> | 94 | /// </summary> |
95 | protected HashSet<UUID> m_NeedsListOfFriends = new HashSet<UUID>(); | 95 | protected HashSet<UUID> m_NeedsListOfOnlineFriends = new HashSet<UUID>(); |
96 | 96 | ||
97 | protected IPresenceService PresenceService | 97 | protected IPresenceService PresenceService |
98 | { | 98 | { |
@@ -331,8 +331,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
331 | StatusChange(agentID, true); | 331 | StatusChange(agentID, true); |
332 | 332 | ||
333 | // Register that we need to send the list of online friends to this user | 333 | // Register that we need to send the list of online friends to this user |
334 | lock (m_NeedsListOfFriends) | 334 | lock (m_NeedsListOfOnlineFriends) |
335 | m_NeedsListOfFriends.Add(agentID); | 335 | m_NeedsListOfOnlineFriends.Add(agentID); |
336 | } | 336 | } |
337 | 337 | ||
338 | public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client) | 338 | public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client) |
@@ -340,9 +340,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
340 | UUID agentID = client.AgentId; | 340 | UUID agentID = client.AgentId; |
341 | 341 | ||
342 | // Check if the online friends list is needed | 342 | // Check if the online friends list is needed |
343 | lock (m_NeedsListOfFriends) | 343 | lock (m_NeedsListOfOnlineFriends) |
344 | { | 344 | { |
345 | if (!m_NeedsListOfFriends.Remove(agentID)) | 345 | if (!m_NeedsListOfOnlineFriends.Remove(agentID)) |
346 | return false; | 346 | return false; |
347 | } | 347 | } |
348 | 348 | ||