* Chasing down memory leak where memory used by a client is not returned on client logout

* This code may or may not be on the right track, but I want to save my work so far.
This commit is contained in:
Justin Clarke Casey
2008-02-06 20:34:18 +00:00
parent b3e85daf02
commit 548bbc97e5
5 changed files with 50 additions and 10 deletions

View File

@@ -36,6 +36,9 @@ namespace OpenSim.Region.ClientStack
{
public class PacketServer
{
private static readonly log4net.ILog m_log
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private ClientStackNetworkHandler m_networkHandler;
private IScene m_scene;
@@ -132,8 +135,11 @@ namespace OpenSim.Region.ClientStack
public virtual void CloseClient(IClientAPI client)
{
//m_log.Info("PacketServer:CloseClient()");
CloseCircuit(client.CircuitCode);
client.Close(false);
m_scene.ClientManager.Remove(client.CircuitCode);
}
}
}
}