@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user