* 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
This commit is contained in:
John Hurliman
2009-10-13 17:33:45 -07:00
parent 395a8680c3
commit dc11643c00
11 changed files with 38 additions and 78 deletions

View File

@@ -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);
}
}
}
/// <summary>
/// Resets the client collection
/// </summary>