Another fix for the weird no exit thing

This commit is contained in:
Ryzerth 2021-04-21 20:06:30 +02:00
parent 77dada07da
commit eb8cd09e65

View File

@ -56,7 +56,7 @@ void ConfigManager::enableAutoSave() {
void ConfigManager::disableAutoSave() {
if (autoSaveEnabled) {
{
std::unique_lock<std::mutex> lock(termMtx);
std::lock_guard<std::mutex> lock(termMtx);
autoSaveEnabled = false;
termFlag = true;
termCond.notify_one();