Fix one bug with MsgDialog thread (freeze on exit)

Forgot to check thread state
This commit is contained in:
Nekotekina 2020-02-26 20:42:25 +03:00
parent 4d3cdca7f6
commit b35a5982e8
1 changed files with 7 additions and 1 deletions

View File

@ -256,12 +256,18 @@ namespace rsx
}
else
{
while (!exit)
while (!exit && thread_ctrl::state() == thread_state::created)
{
refresh();
// Only update the screen at about 60fps since updating it everytime slows down the process
std::this_thread::sleep_for(16ms);
if (!g_fxo->get<display_manager>())
{
rsx_log.fatal("display_manager was improperly destroyed");
return;
}
}
}