dont try dequeues if didnt reacquired lock

LSLKeyTest
UbitUmarov 2016-07-17 16:21:37 +01:00
parent f636ef037a
commit 9b4e83caa0
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ namespace OpenSim.Framework
{
if (m_queue.Count < 1 && m_pqueue.Count < 1)
{
Monitor.Wait(m_queueSync, msTimeout);
if(!Monitor.Wait(m_queueSync, msTimeout))
return default(T);
}
if (m_pqueue.Count > 0)