let BlockingQueue timeout work as its suposed to and not wait for ever
parent
6c3e08e18d
commit
05d071a430
|
@ -76,10 +76,9 @@ namespace OpenSim.Framework
|
|||
{
|
||||
lock (m_queueSync)
|
||||
{
|
||||
bool success = true;
|
||||
while (m_queue.Count < 1 && m_pqueue.Count < 1 && success)
|
||||
if (m_queue.Count < 1 && m_pqueue.Count < 1)
|
||||
{
|
||||
success = Monitor.Wait(m_queueSync, msTimeout);
|
||||
Monitor.Wait(m_queueSync, msTimeout);
|
||||
}
|
||||
|
||||
if (m_pqueue.Count > 0)
|
||||
|
|
Loading…
Reference in New Issue