From da948a992a54164663b8fee1cd82432017672bc2 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 10 May 2009 20:25:05 +0000 Subject: * 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(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index 9b39292..bb0c0c7 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; + } } } -- cgit v1.1