Skip to content

Commit

Permalink
feat: Updated server/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 15, 2024
1 parent 3ea3c7a commit 64fbf26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Player Section: ${addresses[0]}
DM Section: ${addresses[0]}/dm`);

console.log(`\n-------------------\n`);
process.on('SIGINT', (shutdownHandler) => {
process.on('SIGINT', shutdownHandler);
console.log("Shutting down gracefully");
httpServer.close((err) => {
if (err) {
Expand Down Expand Up @@ -103,6 +103,12 @@ DM Section: ${addresses[0]}/dm`);
}
process.exit(1);
} else {
});
process.on("SIGINT", shutdownHandler);
});
});
process.on("SIGINT", shutdownHandler);
});
console.log('Server shut down gracefully.');
process.exit(0);
}
Expand Down

0 comments on commit 64fbf26

Please sign in to comment.