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();