diff options
author | UbitUmarov | 2016-11-19 21:53:09 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-19 21:53:09 +0000 |
commit | b887b7625e03a3923e8eea72353c878bc1d4b3a9 (patch) | |
tree | 4ce637cff018ada371987780bc5c0755119b8dcc /OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |
parent | remove some potencial null refs i did add in last days :( (diff) | |
download | opensim-SC-b887b7625e03a3923e8eea72353c878bc1d4b3a9.zip opensim-SC-b887b7625e03a3923e8eea72353c878bc1d4b3a9.tar.gz opensim-SC-b887b7625e03a3923e8eea72353c878bc1d4b3a9.tar.bz2 opensim-SC-b887b7625e03a3923e8eea72353c878bc1d4b3a9.tar.xz |
change OutPacket drop condition
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-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 | { |