From d4ce0e6541fce8beaf33cd441cb0c431852ddd53 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Thu, 30 Jul 2026 11:15:49 +0700 Subject: [PATCH] fix: process.once on signals --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 46a0c9ca..1acb49cd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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'); });