* Added lock to Contains to avoid enumeration exceptions

This commit is contained in:
lbsa71
2008-01-03 12:55:23 +00:00
parent 3f78e55ef4
commit b95efbb689

View File

@@ -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);
}
}
}
}