Hotfixes issues with Insensitive and WorkQueue

This commit is contained in:
Kamron Batman 2019-10-05 11:03:36 -07:00
parent 8e9221bb5a
commit 24430839ad
No known key found for this signature in database
GPG key ID: 5C9DFD15804B6BB8
3 changed files with 13 additions and 38 deletions

View file

@ -48,8 +48,8 @@ namespace Server.Network
public void DoWork()
{
int count = m_WorkQueue.Count;
while (count-- > 0)
int count = 0;
while (!m_WorkQueue.IsEmpty && count++ < 250)
{
if (!m_WorkQueue.TryDequeue(out Work work))
break;