From cde47c89f38c239e7925a54c84c4fe16a4023696 Mon Sep 17 00:00:00 2001 From: Wail Mebarki Date: Sat, 11 Apr 2026 10:33:29 -0400 Subject: [PATCH] fix(cli): make SIGINT handler async for dynamic import --- src/cli/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/index.js b/src/cli/index.js index 74dc51f8..82acb0e5 100755 --- a/src/cli/index.js +++ b/src/cli/index.js @@ -1642,7 +1642,7 @@ program console.log(chalk.gray(` ID: ${monitor.id}`)); // Keep process alive - process.on('SIGINT', () => { + process.on('SIGINT', async () => { const { stopMonitor: stop } = await import('../analytics/reputation.js'); stop(monitor.id); console.log(chalk.yellow('\nšŸ›‘ Monitor stopped.'));