Skip to content

Commit

Permalink
chore: re-add explicit exit after beacon node closed (#5748)
Browse files Browse the repository at this point in the history
Re-add explicit exit after beacon node closed

This reverts commit 1de881b.
  • Loading branch information
nflaig authored Jul 12, 2023
1 parent 0640e06 commit 7e34c46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/cmds/beacon/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void
try {
await node.close();
logger.debug("Beacon node closed");
// Explicitly exit until active handles issue is resolved
// See https://github.com/ChainSafe/lodestar/issues/5642
process.exit(0);
} catch (e) {
logger.error("Error closing beacon node", {}, e as Error);
// Make sure db is always closed gracefully
Expand Down

0 comments on commit 7e34c46

Please sign in to comment.