Hotfixes issues with Insensitive and WorkQueue
This commit is contained in:
parent
8e9221bb5a
commit
24430839ad
3 changed files with 13 additions and 38 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue