mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 09:34:40 -06:00
Latte: Fix race condition on close during game boot
This commit is contained in:
parent
06233e3462
commit
bbba516f08
@ -235,6 +235,8 @@ void Latte_Start()
|
||||
void Latte_Stop()
|
||||
{
|
||||
std::unique_lock _lock(sLatteThreadStateMutex);
|
||||
if (!sLatteThreadRunning)
|
||||
return;
|
||||
sLatteThreadRunning = false;
|
||||
_lock.unlock();
|
||||
sLatteThread.join();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user