mirror of
https://github.com/opensim/opensim.git
synced 2026-05-26 12:05:34 +08:00
* Fix for mantis 0000040 After client logout remote host closed connection on Simulator makes sim unuseable->'Closed Connection Called'
* I've fundamentally changed a few things, so this is experimental * The routine that I used needs to be tested on Linux. I don't expect it to cause a problem, but hey, it might. * Child agents are still not logged off properly, so when the first set time out, the second set get logged off also, on the second log in if the second login is initiated before the first one fully times out.
This commit is contained in:
@@ -209,8 +209,8 @@ namespace OpenSim.Region.ClientStack
|
||||
m_scene.RemoveClient(AgentId);
|
||||
|
||||
// Send the STOP packet
|
||||
//libsecondlife.Packets.DisableSimulatorPacket disable = new libsecondlife.Packets.DisableSimulatorPacket();
|
||||
//OutPacket(disable, ThrottleOutPacketType.Task);
|
||||
DisableSimulatorPacket disable = new DisableSimulatorPacket();
|
||||
OutPacket(disable, ThrottleOutPacketType.Task);
|
||||
|
||||
// FLUSH Packets
|
||||
m_packetQueue.Close();
|
||||
@@ -225,6 +225,10 @@ namespace OpenSim.Region.ClientStack
|
||||
// This is just to give the client a reasonable chance of
|
||||
// flushing out all it's packets. There should probably
|
||||
// be a better mechanism here
|
||||
|
||||
// We can't reach into other scenes and close the connection
|
||||
// We need to do this over grid communications
|
||||
m_scene.CloseAllAgents(CircuitCode);
|
||||
|
||||
m_clientThread.Abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user