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
parent
34f0694938
commit
74465df43f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue