Skip to content

Commit

Permalink
fix: πŸ› Fix daemon getting killed if started before DC (#2480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedLi authored Sep 9, 2024
1 parent 07573d6 commit 6311d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/desktop/electron-app/src/services/cache-daemon-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class CacheDaemonManager {
this.#cacheDaemonProcess = childProcess;

// If we get a null/undefined, err on safe side and don't stop daemon when
// we close the desktop client as the absence of the "daemon is already running"
// we close the desktop client as the absence of the "cache is already running"
// message doesn't necessarily guarantee it's running (but it likely should be)
if (stderr && !stderr.includes('The daemon is already running')) {
if (stderr && !stderr.includes('The cache is already running')) {
this.#isCacheDaemonAlreadyRunning = false;
log.info('Cache daemon started, status from daemon:\n', stderr);
} else {
Expand Down

0 comments on commit 6311d75

Please sign in to comment.