aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/BlockingQueue.cs
diff options
context:
space:
mode:
authorDan Lake2013-07-17 15:06:25 -0700
committerDan Lake2013-07-17 15:06:25 -0700
commit49b3b7ee832bfd71d736773e7499158b068c3cae (patch)
tree5ba499399e8a00e8aebfb136203821ce17eebe0e /OpenSim/Framework/BlockingQueue.cs
parentcommand line kick user now uses exact name match instead of substring search ... (diff)
parentThis is a completely unreasonable thing to do, effectively defying the purpos... (diff)
downloadopensim-SC-49b3b7ee832bfd71d736773e7499158b068c3cae.zip
opensim-SC-49b3b7ee832bfd71d736773e7499158b068c3cae.tar.gz
opensim-SC-49b3b7ee832bfd71d736773e7499158b068c3cae.tar.bz2
opensim-SC-49b3b7ee832bfd71d736773e7499158b068c3cae.tar.xz
Merge branch 'master' of git://opensimulator.org/git/opensim
Diffstat (limited to 'OpenSim/Framework/BlockingQueue.cs')
-rw-r--r--OpenSim/Framework/BlockingQueue.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Framework/BlockingQueue.cs b/OpenSim/Framework/BlockingQueue.cs
index aef1192..3e90fac 100644
--- a/OpenSim/Framework/BlockingQueue.cs
+++ b/OpenSim/Framework/BlockingQueue.cs
@@ -76,9 +76,10 @@ namespace OpenSim.Framework
76 { 76 {
77 lock (m_queueSync) 77 lock (m_queueSync)
78 { 78 {
79 if (m_queue.Count < 1 && m_pqueue.Count < 1) 79 bool success = true;
80 while (m_queue.Count < 1 && m_pqueue.Count < 1 && success)
80 { 81 {
81 Monitor.Wait(m_queueSync, msTimeout); 82 success = Monitor.Wait(m_queueSync, msTimeout);
82 } 83 }
83 84
84 if (m_pqueue.Count > 0) 85 if (m_pqueue.Count > 0)