diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 55d4e39..05a3191 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -12946,12 +12946,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
12946 | /// provide your own method.</param> | 12946 | /// provide your own method.</param> |
12947 | protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method) | 12947 | protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method) |
12948 | { | 12948 | { |
12949 | if(!IsActive) | 12949 | if(!m_udpClient.IsConnected) |
12950 | { | ||
12951 | PacketPool.Instance.ReturnPacket(packet); | ||
12950 | return; | 12952 | return; |
12953 | } | ||
12951 | 12954 | ||
12952 | if (m_outPacketsToDrop != null) | 12955 | if (m_outPacketsToDrop != null) |
12956 | { | ||
12953 | if (m_outPacketsToDrop.Contains(packet.Type.ToString())) | 12957 | if (m_outPacketsToDrop.Contains(packet.Type.ToString())) |
12958 | { | ||
12959 | PacketPool.Instance.ReturnPacket(packet); | ||
12954 | return; | 12960 | return; |
12961 | } | ||
12962 | } | ||
12955 | 12963 | ||
12956 | if (DebugPacketLevel > 0) | 12964 | if (DebugPacketLevel > 0) |
12957 | { | 12965 | { |