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; + } } }