mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-15 23:42:36 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Emu.IsStopped())
|
||||||
|
{
|
||||||
|
// For similar race as above
|
||||||
|
state += cpu_flag::exit;
|
||||||
|
}
|
||||||
|
|
||||||
g_threads_created++;
|
g_threads_created++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user