mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-02-22 20:57:12 +01:00
Latte: Fix race condition on close during game boot
This commit is contained in:
parent
9a53b19403
commit
4c16397cf4
@ -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…
x
Reference in New Issue
Block a user