fix: missing IPC messages

fixes #8905
This commit is contained in:
sithlord48
2025-08-29 10:07:47 -04:00
committed by Nick Bolton
parent d1897efa8b
commit 60e71aad38
3 changed files with 7 additions and 8 deletions

View File

@ -232,7 +232,7 @@ void ClientApp::scheduleClientRestart(double retryTime)
void ClientApp::handleClientConnected() const
{
LOG_NOTE("connected to server");
LOG_IPC("connected to server");
}
void ClientApp::handleClientFailed(const Event &e)
@ -267,7 +267,7 @@ void ClientApp::handleClientRefused(const Event &e)
void ClientApp::handleClientDisconnected()
{
LOG_NOTE("disconnected from server");
LOG_IPC("disconnected from server");
if (!args().m_restartable) {
getEvents()->addEvent(Event(EventTypes::Quit));
} else if (!m_suspended) {

View File

@ -440,7 +440,7 @@ bool ServerApp::startServer()
listener->setServer(m_server);
m_server->setListener(listener);
m_listener = listener;
LOG_NOTE("started server, waiting for clients");
LOG_IPC("started server, waiting for clients");
m_serverState = Started;
return true;
} catch (SocketAddressInUseException &e) {

View File

@ -6,6 +6,7 @@
#include "CoreProcess.h"
#include "base/Log.h"
#include "common/ExitCodes.h"
#include "common/Settings.h"
#include "gui/ipc/DaemonIpcClient.h"
@ -203,16 +204,14 @@ void CoreProcess::onProcessFinished(int exitCode, QProcess::ExitStatus)
m_retryTimer.stop();
}
if (exitCode == s_exitSuccess) {
qDebug("desktop process exited normally");
} else if (exitCode != s_exitDuplicate) {
qWarning("desktop process exited with error code: %d", exitCode);
} else {
if (exitCode == s_exitDuplicate) {
setProcessState(ProcessState::Stopped);
qWarning("desktop process is already running");
return;
}
LOG_IPC("desktop process exited with code: %d", exitCode);
if (const auto wasStarted = m_processState == ProcessState::Started; wasStarted) {
qDebug("desktop process was running, retrying in %d ms", kRetryDelay);
setProcessState(ProcessState::RetryPending);