diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 5fe99ca..0e1b9de 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -405,8 +405,14 @@ void CHyprlock::run() { acquireSessionLock(); - if (m_bTerminate) // Recieved finished + // Recieved finished + if (m_bTerminate) { + m_sLoopState.timerEvent = true; + m_sLoopState.timerCV.notify_all(); + g_pRenderer->asyncResourceGatherer->notify(); + g_pRenderer->asyncResourceGatherer->await(); exit(1); + } g_pAuth = std::make_unique(); g_pAuth->start();