Skip to content

Commit 2525052

Browse files
committed
start: avoid crash in dtor after forceQuit
1 parent f7f357f commit 2525052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

start/src/core/Instance.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ void CHyprlandInstance::runHyprlandThread(bool safeMode) {
7474
void CHyprlandInstance::forceQuit() {
7575
m_hyprlandExiting = true;
7676
kill(m_hlPid, SIGTERM); // gracefully, can get stuck but it's unlikely
77+
78+
m_hlThread.join(); // needs this otherwise can crash
7779
}
7880

7981
void CHyprlandInstance::clearFd(const Hyprutils::OS::CFileDescriptor& fd) {

0 commit comments

Comments
 (0)