Skip to content

Commit

Permalink
shutdown_storage murders storage server 2nd call
Browse files Browse the repository at this point in the history
  • Loading branch information
neuroscr committed Feb 20, 2024
1 parent c231dd1 commit 3096a0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ function shutdown_blockchain() {
}

function shutdown_storage() {
if (storageServer && storageServer.killed)) {
if (lib.isPidRunning(storageServer.pid)) {
console.log('LAUNCHER: killing SS again')
process.kill(storageServer.pid, 'SIGKILL')
}
}
if (storageServer && !storageServer.killed) {
// FIXME: was killed not set?
try {
Expand Down Expand Up @@ -530,6 +536,7 @@ function launcherStorageServer(config, args, cb) {
if (data === undefined) {
console.log('STORAGE: RPC server not responding, restarting storage server')
shutdown_storage()
// what restarts this? something does
}
})
}
Expand Down

0 comments on commit 3096a0d

Please sign in to comment.