fix: process.once on signals

This commit is contained in:
devlikepro committed 2026-08-05 14:34:59 +07:00
1 parent 5ddbeb995e
commit d4ce0e6541
1 file changed
+2 -2
+2 -2
View File
@@ -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');
});