Restore thread counter (world may be not ready yet)

Remove dumb 1300ms timeout.
This commit is contained in:
Nekotekina 2020-02-25 11:43:04 +03:00
parent cd40bc8c61
commit 7eebe06931
4 changed files with 19 additions and 3 deletions

View file

@ -1600,6 +1600,14 @@ void Emulator::Stop(bool restart)
cpu_thread::stop_all();
g_fxo->reset();
while (thread_ctrl::get_count())
{
std::this_thread::sleep_for(10ms);
}
sys_log.notice("All threads have been stopped.");
lv2_obj::cleanup();
idm::clear();