fix: restore lock guard
This commit is contained in:
@@ -47,6 +47,8 @@ Proxy* g_Proxy = nullptr;
|
|||||||
|
|
||||||
void cleanup()
|
void cleanup()
|
||||||
{
|
{
|
||||||
|
static std::mutex cleanupMutex;
|
||||||
|
std::lock_guard<std::mutex> lock(cleanupMutex);
|
||||||
static bool cleaned = false;
|
static bool cleaned = false;
|
||||||
if (cleaned) return;
|
if (cleaned) return;
|
||||||
cleaned = true;
|
cleaned = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user