mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* 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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user