diff --git a/start/src/core/Instance.cpp b/start/src/core/Instance.cpp index 2ff532794..c89d9d0b3 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) {