mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
core: avoid idling forever after exit
This commit is contained in:
parent
1b5b3e7df8
commit
b8fcfe8352
1 changed files with 3 additions and 0 deletions
|
@ -233,6 +233,9 @@ void CHyprlock::run() {
|
||||||
ret = wl_display_dispatch_pending(m_sWaylandState.display);
|
ret = wl_display_dispatch_pending(m_sWaylandState.display);
|
||||||
wl_display_flush(m_sWaylandState.display);
|
wl_display_flush(m_sWaylandState.display);
|
||||||
} while (ret > 0);
|
} while (ret > 0);
|
||||||
|
|
||||||
|
if (m_bTerminate)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::lock_guard<std::mutex> lg2(m_sLoopState.timerRequestMutex);
|
std::lock_guard<std::mutex> lg2(m_sLoopState.timerRequestMutex);
|
||||||
|
|
Loading…
Reference in a new issue