mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Fix Emulator::Stop race with IDM
Newly created threads' state could have not been flagged with exit.
This commit is contained in:
parent
e9bea1c742
commit
dea1d01de2
@ -614,6 +614,12 @@ cpu_thread::cpu_thread(u32 id)
|
||||
break;
|
||||
}
|
||||
|
||||
if (Emu.IsStopped())
|
||||
{
|
||||
// For similar race as above
|
||||
state += cpu_flag::exit;
|
||||
}
|
||||
|
||||
g_threads_created++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user