Skip to content

Commit

Permalink
don't wait on the first quite, let them run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Dec 1, 2024
1 parent f00c989 commit 8532829
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/clients/sentinel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,14 @@ export class Sentinel extends Single {
}

async quit() {
await super.quit();
const promises = [
super.quit()
];
if (this.sentinelClient) {
const reply = this.sentinelClient.quit();
return reply.then(() => {})
promises.push(reply.then(() => {}))
}
return Promise.all(promises).then(() => {});
}
}

0 comments on commit 8532829

Please sign in to comment.