Skip to content

Commit

Permalink
fix: stop daemon even if offline (#845)
Browse files Browse the repository at this point in the history
Sometimes the daemon will be running but without listen addresses.
  • Loading branch information
achingbrain committed Sep 12, 2024
1 parent 179840d commit 8a07395
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/kubo/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,9 @@ export default class KuboDaemon implements KuboNode {
return
}

if (!(await this.api.isOnline())) {
return
}

await this.api.stop()

try {
await this.api.stop()

// wait for the subprocess to exit and declare ourselves stopped
await waitFor(() => subprocess.exitCode != null, {
timeout
Expand Down

0 comments on commit 8a07395

Please sign in to comment.