fix: stop retry if core has crashed

fixes: #9003
This commit is contained in:
sithlord48 2025-10-07 07:31:07 -04:00 committed by Nick Bolton
parent 0820c5a188
commit aae3067f03

View file

@ -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);