core: wait for poll threads to exit to avoid a coredump

This commit is contained in:
Vaxry 2024-02-20 03:05:51 +00:00
parent 98606beaad
commit 394dc81ff3

View file

@ -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");
}