mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-27 12:01:10 -05:00
Don't eat CPU while shutting down the GT server.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user