From dc11643c007adf7a640ec4fbabe25995352aaa18 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Tue, 13 Oct 2009 17:33:45 -0700 Subject: * 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 --- OpenSim/Framework/ClientManager.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Framework') 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 } } + public void Remove(UUID key) + { + lock (m_writeLock) + { + IClientAPI client; + + if (m_dict.TryGetValue(key, out client)) + { + m_dict = m_dict.Delete(key); + m_dict2 = m_dict2.Delete(client.RemoteEndPoint); + } + } + } + /// /// Resets the client collection /// -- cgit v1.1