aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/ClientManager.cs
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-13 17:33:45 -0700
committerJohn Hurliman2009-10-13 17:33:45 -0700
commitdc11643c007adf7a640ec4fbabe25995352aaa18 (patch)
tree108b5f7234756c5395d4ca518cfeb03454f62ace /OpenSim/Framework/ClientManager.cs
parent* Fixed a bug where clients were being added to ClientManager twice (diff)
downloadopensim-SC_OLD-dc11643c007adf7a640ec4fbabe25995352aaa18.zip
opensim-SC_OLD-dc11643c007adf7a640ec4fbabe25995352aaa18.tar.gz
opensim-SC_OLD-dc11643c007adf7a640ec4fbabe25995352aaa18.tar.bz2
opensim-SC_OLD-dc11643c007adf7a640ec4fbabe25995352aaa18.tar.xz
* Consolidated adding / removing ClientManager IClientAPIs to two places in Scene
* Added some missing implementations of IClientAPI.RemoteEndPoint * Added a ClientManager.Remove(UUID) overload * Removed a reference to a missing project from prebuild.xml
Diffstat (limited to 'OpenSim/Framework/ClientManager.cs')
-rw-r--r--OpenSim/Framework/ClientManager.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Framework/ClientManager.cs b/OpenSim/Framework/ClientManager.cs
index aefe425..fd5f87f 100644
--- a/OpenSim/Framework/ClientManager.cs
+++ b/OpenSim/Framework/ClientManager.cs
@@ -134,6 +134,20 @@ namespace OpenSim.Framework
134 } 134 }
135 } 135 }
136 136
137 public void Remove(UUID key)
138 {
139 lock (m_writeLock)
140 {
141 IClientAPI client;
142
143 if (m_dict.TryGetValue(key, out client))
144 {
145 m_dict = m_dict.Delete(key);
146 m_dict2 = m_dict2.Delete(client.RemoteEndPoint);
147 }
148 }
149 }
150
137 /// <summary> 151 /// <summary>
138 /// Resets the client collection 152 /// Resets the client collection
139 /// </summary> 153 /// </summary>