mirror of https://github.com/RPCS3/rpcs3.git
Fix one bug with MsgDialog thread (freeze on exit)
Forgot to check thread state
This commit is contained in:
parent
4d3cdca7f6
commit
b35a5982e8
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue