From 25250527793eb04bb60f103abe7f06370b9f6e1c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 24 Dec 2025 20:27:00 +0100 Subject: [PATCH] start: avoid crash in dtor after forceQuit --- start/src/core/Instance.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) {