diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 65cf1778b4..efaed6220c 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -2304,7 +2304,11 @@ namespace OpenSim.Framework public virtual int Count { - get { return m_highQueue.Count + m_lowQueue.Count; } + get + { + lock (m_syncRoot) + return m_highQueue.Count + m_lowQueue.Count; + } } public virtual void Enqueue(T data)