Bicycle color synchronization. Fixed server crash

This commit is contained in:
EntenKoeniq
2021-11-24 00:12:25 +01:00
parent f6a49fe87f
commit 902acdd798
3 changed files with 11 additions and 14 deletions

View File

@ -36,7 +36,7 @@ namespace CoopServer
private void ThreadLoop()
{
while (_hasToStop)
do
{
if (_actionQueue.Count != 0)
{
@ -48,7 +48,7 @@ namespace CoopServer
// 16 milliseconds to sleep to reduce CPU usage
Thread.Sleep(1000 / 60);
}
} while (_hasToStop);
}
public bool InvokeModPacketReceived(long from, long target, string mod, byte customID, byte[] bytes)