From 1fa0c2f9b03bce11eecbf4f9c51bcc28407d9d76 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Tue, 15 Nov 2011 16:05:08 +0000 Subject: [PATCH] refactor: rename m_NeedsListOfFriends => m_NeedsListOfOnlineFriends to better reflect its actual function --- .../Region/CoreModules/Avatar/Friends/FriendsModule.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index f98c4dd82b..cb05c83d3e 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 /// Maintain a record of viewers that need to be sent notifications for friends that are online. This only /// needs to be done on login. Subsequent online/offline friend changes are sent by a different mechanism. /// - protected HashSet m_NeedsListOfFriends = new HashSet(); + protected HashSet m_NeedsListOfOnlineFriends = new HashSet(); protected IPresenceService PresenceService { @@ -331,8 +331,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends StatusChange(agentID, true); // Register that we need to send the list of online friends to this user - lock (m_NeedsListOfFriends) - m_NeedsListOfFriends.Add(agentID); + lock (m_NeedsListOfOnlineFriends) + m_NeedsListOfOnlineFriends.Add(agentID); } public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client) @@ -340,9 +340,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends UUID agentID = client.AgentId; // Check if the online friends list is needed - lock (m_NeedsListOfFriends) + lock (m_NeedsListOfOnlineFriends) { - if (!m_NeedsListOfFriends.Remove(agentID)) + if (!m_NeedsListOfOnlineFriends.Remove(agentID)) return false; }