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.'));