From eb8cd09e65de7b0a459fbcf3ce602f8e92129114 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Wed, 21 Apr 2021 20:06:30 +0200 Subject: [PATCH] Another fix for the weird no exit thing --- core/src/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/config.cpp b/core/src/config.cpp index 911376c4..b934b054 100644 --- a/core/src/config.cpp +++ b/core/src/config.cpp @@ -56,7 +56,7 @@ void ConfigManager::enableAutoSave() { void ConfigManager::disableAutoSave() { if (autoSaveEnabled) { { - std::unique_lock lock(termMtx); + std::lock_guard lock(termMtx); autoSaveEnabled = false; termFlag = true; termCond.notify_one();