From aae3067f03d69b4987205784f2e7087edc44f224 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Tue, 7 Oct 2025 07:31:07 -0400 Subject: [PATCH] fix: stop retry if core has crashed fixes: #9003 --- src/lib/gui/core/CoreProcess.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/lib/gui/core/CoreProcess.cpp b/src/lib/gui/core/CoreProcess.cpp index e729e1470..fac7ed578 100644 --- a/src/lib/gui/core/CoreProcess.cpp +++ b/src/lib/gui/core/CoreProcess.cpp @@ -185,17 +185,16 @@ void CoreProcess::onProcessFinished(int exitCode, QProcess::ExitStatus) m_retryTimer.stop(); } - if (exitCode == s_exitDuplicate) { + if (exitCode != s_exitSuccess) { setProcessState(Stopped); - qWarning("desktop process is already running"); + if (exitCode == s_exitDuplicate) + qWarning("desktop process is already running"); + else + qWarning("desktop process exited with code: %d", exitCode); return; } - if (exitCode != s_exitSuccess) { - qWarning("desktop process exited with code: %d", exitCode); - } else { - qDebug("desktop process exited normally"); - } + qDebug("desktop process exited normally"); if (const auto wasStarted = m_processState == Started; wasStarted) { qDebug("desktop process was running, retrying in %d ms", kRetryDelay);