Skip to content

Commit

Permalink
✨ add faillock to daemon restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed Nov 10, 2024
1 parent 7f4fe75 commit 46a0538
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions desktop/daemon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ void Daemon::syncPool() {
}

void Daemon::heartbeat() {
if (m_daemon->state() == QProcess::Starting) return;
if (m_daemon->state() != QProcess::Running && m_faillock++ < 5) {
qWarning() << "Daemon is not running, try restart it.";
m_logs->appendLog(Log(QDateTime::currentDateTime().toString(Qt::ISODate), EventLevel::WARNING,
Expand Down

0 comments on commit 46a0538

Please sign in to comment.