mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-04-29 14:59:26 -04:00
Latte: Fix race condition on close during game boot
This commit is contained in:
parent
06233e3462
commit
bbba516f08
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ void Latte_Start()
|
||||||
void Latte_Stop()
|
void Latte_Stop()
|
||||||
{
|
{
|
||||||
std::unique_lock _lock(sLatteThreadStateMutex);
|
std::unique_lock _lock(sLatteThreadStateMutex);
|
||||||
|
if (!sLatteThreadRunning)
|
||||||
|
return;
|
||||||
sLatteThreadRunning = false;
|
sLatteThreadRunning = false;
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
sLatteThread.join();
|
sLatteThread.join();
|
||||||
|
|
Loading…
Add table
Reference in a new issue