diff options
author | John Hurliman | 2009-10-13 17:33:45 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-13 17:33:45 -0700 |
commit | dc11643c007adf7a640ec4fbabe25995352aaa18 (patch) | |
tree | 108b5f7234756c5395d4ca518cfeb03454f62ace /OpenSim/Framework | |
parent | * Fixed a bug where clients were being added to ClientManager twice (diff) | |
download | opensim-SC-dc11643c007adf7a640ec4fbabe25995352aaa18.zip opensim-SC-dc11643c007adf7a640ec4fbabe25995352aaa18.tar.gz opensim-SC-dc11643c007adf7a640ec4fbabe25995352aaa18.tar.bz2 opensim-SC-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')
-rw-r--r-- | OpenSim/Framework/ClientManager.cs | 14 |
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> |