From b95efbb689513888ed5803f984ee0210019f2126 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 3 Jan 2008 12:55:23 +0000 Subject: [PATCH] * Added lock to Contains to avoid enumeration exceptions --- OpenSim/Framework/BlockingQueue.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/BlockingQueue.cs b/OpenSim/Framework/BlockingQueue.cs index 3ff3dac596..dd6d866e39 100644 --- a/OpenSim/Framework/BlockingQueue.cs +++ b/OpenSim/Framework/BlockingQueue.cs @@ -59,7 +59,10 @@ namespace OpenSim.Framework public bool Contains(T item) { - return m_queue.Contains(item); + lock (m_queueSync) + { + return m_queue.Contains(item); + } } } } \ No newline at end of file