mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Latte: Fix race condition on close during game boot
This commit is contained in:
@@ -235,6 +235,8 @@ void Latte_Start()
|
||||
void Latte_Stop()
|
||||
{
|
||||
std::unique_lock _lock(sLatteThreadStateMutex);
|
||||
if (!sLatteThreadRunning)
|
||||
return;
|
||||
sLatteThreadRunning = false;
|
||||
_lock.unlock();
|
||||
sLatteThread.join();
|
||||
|
||||
Reference in New Issue
Block a user