parent
0820c5a188
commit
aae3067f03
1 changed files with 6 additions and 7 deletions
|
|
@ -185,17 +185,16 @@ void CoreProcess::onProcessFinished(int exitCode, QProcess::ExitStatus)
|
||||||
m_retryTimer.stop();
|
m_retryTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exitCode == s_exitDuplicate) {
|
if (exitCode != s_exitSuccess) {
|
||||||
setProcessState(Stopped);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exitCode != s_exitSuccess) {
|
qDebug("desktop process exited normally");
|
||||||
qWarning("desktop process exited with code: %d", exitCode);
|
|
||||||
} else {
|
|
||||||
qDebug("desktop process exited normally");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (const auto wasStarted = m_processState == Started; wasStarted) {
|
if (const auto wasStarted = m_processState == Started; wasStarted) {
|
||||||
qDebug("desktop process was running, retrying in %d ms", kRetryDelay);
|
qDebug("desktop process was running, retrying in %d ms", kRetryDelay);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue