fix: process.once on signals
This commit is contained in:
1 parent
5ddbeb995e
commit
d4ce0e6541
1 file changed
+2
-2
+2
-2
@@ -43,11 +43,11 @@ process.on('unhandledRejection', (reason, promise) => {
|
||||
});
|
||||
logger.info('NODE - Catching unhandled rejections and exceptions enabled');
|
||||
|
||||
process.on('SIGINT', () => {
|
||||
process.once('SIGINT', () => {
|
||||
logger.info('SIGINT received');
|
||||
});
|
||||
|
||||
process.on('SIGTERM', () => {
|
||||
process.once('SIGTERM', () => {
|
||||
logger.info('SIGTERM received');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user