mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-11 18:57:11 +01:00
Another fix for the weird no exit thing
This commit is contained in:
parent
77dada07da
commit
eb8cd09e65
@ -56,7 +56,7 @@ void ConfigManager::enableAutoSave() {
|
|||||||
void ConfigManager::disableAutoSave() {
|
void ConfigManager::disableAutoSave() {
|
||||||
if (autoSaveEnabled) {
|
if (autoSaveEnabled) {
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> lock(termMtx);
|
std::lock_guard<std::mutex> lock(termMtx);
|
||||||
autoSaveEnabled = false;
|
autoSaveEnabled = false;
|
||||||
termFlag = true;
|
termFlag = true;
|
||||||
termCond.notify_one();
|
termCond.notify_one();
|
||||||
|
Loading…
Reference in New Issue
Block a user