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 de89e48 commit 9375743
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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', () => {
process.on('SIGINT', (shutdownHandler) => {
console.log("Shutting down gracefully");
httpServer.close((err) => {
if (err) {
Expand Down Expand Up @@ -97,7 +97,10 @@ DM Section: ${addresses[0]}/dm`);
httpServer.close((err) => {

if (err) {
console.error('Server shutdown error:', err);
console.error('Server shutdown error:', err);
if (err) {
process.exitCode = 1;
}
process.exit(1);
} else {
console.log('Server shut down gracefully.');
Expand Down

0 comments on commit 9375743

Please sign in to comment.