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.
avinationmerge
Melanie 2012-08-29 11:45:28 +02:00
parent 34f0694938
commit 74465df43f
1 changed files with 8 additions and 2 deletions

View File

@ -1606,10 +1606,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
else
res = m_lowQueue.Dequeue();
if (m_highQueue.Count == 0 || m_lowQueue.Count == 0)
if (m_highQueue.Count == 0 && m_lowQueue.Count == 0)
return true;
m_s.Release();
try
{
m_s.Release();
}
catch
{
}
return true;
}