Emulator should process queued commands before exiting
This commit is contained in:
parent
bc7b7c615c
commit
7900faeb01
1 changed files with 10 additions and 5 deletions
|
|
@ -625,16 +625,21 @@ namespace MatterHackers.PrinterEmulator
|
|||
{
|
||||
if (receiveQueue.Count == 0)
|
||||
{
|
||||
receiveResetEvent.WaitOne();
|
||||
}
|
||||
if (shuttingDown)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (shuttingDown)
|
||||
{
|
||||
return;
|
||||
receiveResetEvent.WaitOne();
|
||||
}
|
||||
|
||||
if (receiveQueue.Count == 0)
|
||||
{
|
||||
if (shuttingDown)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue