diff options
author | UbitUmarov | 2016-11-19 21:06:42 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-19 21:06:42 +0000 |
commit | 8010413e645e1aaf655008e216c017943a5d8c76 (patch) | |
tree | 228bdbdd16adb0b5cb7adb56c33216123ecabe5c /OpenSim | |
parent | REST console v2. This is an incompatible protocol change. It degrades gracefu... (diff) | |
download | opensim-SC_OLD-8010413e645e1aaf655008e216c017943a5d8c76.zip opensim-SC_OLD-8010413e645e1aaf655008e216c017943a5d8c76.tar.gz opensim-SC_OLD-8010413e645e1aaf655008e216c017943a5d8c76.tar.bz2 opensim-SC_OLD-8010413e645e1aaf655008e216c017943a5d8c76.tar.xz |
remove some potencial null refs i did add in last days :(
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 8ba26e8..55d4e39 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -620,7 +620,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
620 | m_entityProps = null; | 620 | m_entityProps = null; |
621 | m_killRecord.Clear(); | 621 | m_killRecord.Clear(); |
622 | GroupsInView.Clear(); | 622 | GroupsInView.Clear(); |
623 | m_scene = null; | 623 | // m_scene = null; can't do this unless checks are added everywhere due to workitems already in pools |
624 | |||
624 | //m_log.InfoFormat("[CLIENTVIEW] Memory pre GC {0}", System.GC.GetTotalMemory(false)); | 625 | //m_log.InfoFormat("[CLIENTVIEW] Memory pre GC {0}", System.GC.GetTotalMemory(false)); |
625 | //GC.Collect(); | 626 | //GC.Collect(); |
626 | //m_log.InfoFormat("[CLIENTVIEW] Memory post GC {0}", System.GC.GetTotalMemory(true)); | 627 | //m_log.InfoFormat("[CLIENTVIEW] Memory post GC {0}", System.GC.GetTotalMemory(true)); |
@@ -4371,7 +4372,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4371 | 4372 | ||
4372 | ushort timeDilation; | 4373 | ushort timeDilation; |
4373 | 4374 | ||
4374 | if(m_scene == null) | 4375 | if(!IsActive) |
4375 | return; | 4376 | return; |
4376 | 4377 | ||
4377 | timeDilation = Utils.FloatToUInt16(m_scene.TimeDilation, 0.0f, 1.0f); | 4378 | timeDilation = Utils.FloatToUInt16(m_scene.TimeDilation, 0.0f, 1.0f); |
@@ -12945,6 +12946,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
12945 | /// provide your own method.</param> | 12946 | /// provide your own method.</param> |
12946 | protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method) | 12947 | protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method) |
12947 | { | 12948 | { |
12949 | if(!IsActive) | ||
12950 | return; | ||
12951 | |||
12948 | if (m_outPacketsToDrop != null) | 12952 | if (m_outPacketsToDrop != null) |
12949 | if (m_outPacketsToDrop.Contains(packet.Type.ToString())) | 12953 | if (m_outPacketsToDrop.Contains(packet.Type.ToString())) |
12950 | return; | 12954 | return; |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs index e85cee2..0efa7c5 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | |||
@@ -299,10 +299,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
299 | OnQueueEmpty = null; | 299 | OnQueueEmpty = null; |
300 | PendingAcks.Clear(); | 300 | PendingAcks.Clear(); |
301 | NeedAcks.Clear(); | 301 | NeedAcks.Clear(); |
302 | NeedAcks = null; | ||
303 | PendingAcks = null; | ||
304 | m_nextPackets = null; | 302 | m_nextPackets = null; |
305 | m_packetOutboxes = null; | ||
306 | } | 303 | } |
307 | 304 | ||
308 | /// <summary> | 305 | /// <summary> |