mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
core: wait for poll threads to exit to avoid a coredump
This commit is contained in:
parent
98606beaad
commit
394dc81ff3
1 changed files with 4 additions and 0 deletions
|
@ -246,6 +246,10 @@ void CHyprlock::run() {
|
|||
|
||||
wl_display_disconnect(m_sWaylandState.display);
|
||||
|
||||
// wait for threads to exit cleanly to avoid a coredump
|
||||
pollThr.join();
|
||||
timersThr.join();
|
||||
|
||||
Debug::log(LOG, "Reached the end, exiting");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue