* Added lock to Contains to avoid enumeration exceptions

afrisby
lbsa71 2008-01-03 12:55:23 +00:00
parent 3f78e55ef4
commit b95efbb689
1 changed files with 4 additions and 1 deletions

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