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