mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 05:19:48 +01:00
core: fix crash caused by exiting without joining running thread (#464)
This commit is contained in:
parent
f673759d01
commit
7bb4113a7e
1 changed files with 7 additions and 1 deletions
|
@ -405,8 +405,14 @@ void CHyprlock::run() {
|
||||||
|
|
||||||
acquireSessionLock();
|
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);
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
g_pAuth = std::make_unique<CAuth>();
|
g_pAuth = std::make_unique<CAuth>();
|
||||||
g_pAuth->start();
|
g_pAuth->start();
|
||||||
|
|
Loading…
Reference in a new issue