Skip to content

Commit

Permalink
switch from 'exit' event to 'beforeExit' in order to make asynchronou…
Browse files Browse the repository at this point in the history
…s calls
  • Loading branch information
jossiey authored and humphd committed Oct 12, 2020
1 parent 91fd863 commit c4b207e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require('./web/server');
/**
* Shutting Down Logic for most Server Shutdown Cases
*/
process.on('exit', shutdown('exit'));
process.on('beforeExit', shutdown('beforeExit'));
process.on('SIGTERM', shutdown('SIGTERM'));
process.on('SIGINT', shutdown('SIGINT'));
process.on('SIGQUIT', shutdown('SIGQUIT'));
Expand Down

0 comments on commit c4b207e

Please sign in to comment.