mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Fix issue with the quit packet being stuck int he queue and a one packet delay.
Also fix semaphore excetion caused by enqueueing while dequque is taking place.
This commit is contained in:
@@ -1606,10 +1606,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||||||
else
|
else
|
||||||
res = m_lowQueue.Dequeue();
|
res = m_lowQueue.Dequeue();
|
||||||
|
|
||||||
if (m_highQueue.Count == 0 || m_lowQueue.Count == 0)
|
if (m_highQueue.Count == 0 && m_lowQueue.Count == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
m_s.Release();
|
try
|
||||||
|
{
|
||||||
|
m_s.Release();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user