* 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

@ -58,8 +58,11 @@ namespace OpenSim.Framework
} }
public bool Contains(T item) public bool Contains(T item)
{
lock (m_queueSync)
{ {
return m_queue.Contains(item); return m_queue.Contains(item);
} }
} }
}
} }