mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-24 15:26:48 -05:00
Don't eat CPU while shutting down the GT server.
This commit is contained in:
parent
9fc5459c66
commit
0f97b73504
|
|
@ -102,7 +102,10 @@ namespace PkmnFoundations.GlobalTerminalService
|
|||
m_listener.Stop();
|
||||
m_closing = true;
|
||||
// wait for worker threads to exit
|
||||
while (m_workers.Count > 0) { }
|
||||
while (m_workers.Count > 0)
|
||||
{
|
||||
Thread.Sleep(10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user