From 8f838c722da978da646fcef59a5af767840832bb Mon Sep 17 00:00:00 2001
From: Tom Grimshaw
Date: Mon, 17 May 2010 14:14:19 -0700
Subject: When killing a zombie session, don't send the stop packet since it
often has the effect of killing a newly connected client.
---
OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
(limited to 'OpenSim/Region/ClientStack/LindenUDP')
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index d5fda9d..5670a78 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -502,18 +502,30 @@ namespace OpenSim.Region.ClientStack.LindenUDP
#region Client Methods
+
///
/// Shut down the client view
///
public void Close()
{
+ Close(true);
+ }
+
+ ///
+ /// Shut down the client view
+ ///
+ public void Close(bool sendStop)
+ {
m_log.DebugFormat(
"[CLIENT]: Close has been called for {0} attached to scene {1}",
Name, m_scene.RegionInfo.RegionName);
- // Send the STOP packet
- DisableSimulatorPacket disable = (DisableSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.DisableSimulator);
- OutPacket(disable, ThrottleOutPacketType.Unknown);
+ if (sendStop)
+ {
+ // Send the STOP packet
+ DisableSimulatorPacket disable = (DisableSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.DisableSimulator);
+ OutPacket(disable, ThrottleOutPacketType.Unknown);
+ }
IsActive = false;
--
cgit v1.1