When killing a zombie session, don't send the stop packet since it often has the effect of killing a newly connected client.

This commit is contained in:
Tom Grimshaw
2010-05-17 14:14:19 -07:00
parent a003c36de5
commit 8f838c722d
10 changed files with 55 additions and 5 deletions

View File

@@ -834,11 +834,19 @@ namespace OpenSim.Client.MXP.ClientStack
}
public void Close()
{
Close(true);
}
public void Close(bool sendStop)
{
m_log.Info("[MXP ClientStack] Close Called");
// Tell the client to go
SendLogoutPacket();
if (sendStop == true)
{
SendLogoutPacket();
}
// Let MXPPacketServer clean it up
if (Session.SessionState != SessionState.Disconnected)