summaryrefslogtreecommitdiff
path: root/start/src/core/Instance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'start/src/core/Instance.cpp')
-rw-r--r--start/src/core/Instance.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/start/src/core/Instance.cpp b/start/src/core/Instance.cpp
index 2ff53279..c89d9d0b 100644
--- a/start/src/core/Instance.cpp
+++ b/start/src/core/Instance.cpp
@@ -74,6 +74,8 @@ void CHyprlandInstance::runHyprlandThread(bool safeMode) {
void CHyprlandInstance::forceQuit() {
m_hyprlandExiting = true;
kill(m_hlPid, SIGTERM); // gracefully, can get stuck but it's unlikely
+
+ m_hlThread.join(); // needs this otherwise can crash
}
void CHyprlandInstance::clearFd(const Hyprutils::OS::CFileDescriptor& fd) {