Avoid deadlocks while opening settings window and calling frontend API

This commit is contained in:
WarmUpTill
2023-01-30 21:07:22 +01:00
committed by WarmUpTill
parent b4936274f2
commit 492128ef86
5 changed files with 27 additions and 28 deletions

View File

@@ -90,7 +90,7 @@ struct SwitcherData {
std::condition_variable cv;
std::mutex m;
std::unique_lock<std::mutex> *mainLoopLock;
std::unique_lock<std::mutex> *mainLoopLock = nullptr;
bool transitionActive = false;
bool waitForTransition = false;