From da948a992a54164663b8fee1cd82432017672bc2 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 10 May 2009 20:25:05 +0000 Subject: [PATCH] * Attempting to diagnose a core packet issue on Windows/.NET. Adding additional locks to see if it fixes the problem. --- OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index 9b39292d47..bb0c0c718e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs @@ -241,8 +241,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP item.TickCount = System.Environment.TickCount; if (item.Sequence == 0) return item; - if (contents.Remove(item.Sequence)) - return item; + lock (contents) + { + if (contents.Remove(item.Sequence)) + return item; + } } }