From f33a871d614d9bf3e08b584080f53dc84dde9ec7 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 13 Jun 2017 14:15:28 +0100 Subject: [PATCH] hope gc does remove a little dic and contents --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 1118bb6001..d22f75e175 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -8042,12 +8042,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP return true; double now = Util.GetTimeStampMS(); - if(objImageSeqs == null) - objImageSeqs = new Dictionary(16); - else + if(objImageSeqs == null || ( now - lastobjImageSeqsMS > 30000.0)) { - if ( now - lastobjImageSeqsMS > 30000.0) - objImageSeqs.Clear(); + objImageSeqs = null; // yeah i know superstition... + objImageSeqs = new Dictionary(16); } lastobjImageSeqsMS = now;