aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorUbitUmarov2016-07-17 16:21:37 +0100
committerUbitUmarov2016-07-17 16:21:37 +0100
commit9b4e83caa0d9081229707b1f12e1b94aad6c2509 (patch)
treeaaf836d946084fab0555e2f1637c42ce83b183c0 /OpenSim/Framework
parenthttp send is blocking, so we need we need to do it async in all cases. - this... (diff)
downloadopensim-SC_OLD-9b4e83caa0d9081229707b1f12e1b94aad6c2509.zip
opensim-SC_OLD-9b4e83caa0d9081229707b1f12e1b94aad6c2509.tar.gz
opensim-SC_OLD-9b4e83caa0d9081229707b1f12e1b94aad6c2509.tar.bz2
opensim-SC_OLD-9b4e83caa0d9081229707b1f12e1b94aad6c2509.tar.xz
dont try dequeues if didnt reacquired lock
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/BlockingQueue.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/BlockingQueue.cs b/OpenSim/Framework/BlockingQueue.cs
index daf99a8..f6861e4 100644
--- a/OpenSim/Framework/BlockingQueue.cs
+++ b/OpenSim/Framework/BlockingQueue.cs
@@ -78,7 +78,8 @@ namespace OpenSim.Framework
78 { 78 {
79 if (m_queue.Count < 1 && m_pqueue.Count < 1) 79 if (m_queue.Count < 1 && m_pqueue.Count < 1)
80 { 80 {
81 Monitor.Wait(m_queueSync, msTimeout); 81 if(!Monitor.Wait(m_queueSync, msTimeout))
82 return default(T);
82 } 83 }
83 84
84 if (m_pqueue.Count > 0) 85 if (m_pqueue.Count > 0)