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