maybe .once will fix it???

This commit is contained in:
ChomeNS 2022-10-25 08:48:54 +07:00
parent e4741e9542
commit 9c62efc76c

2
run.js
View file

@ -66,7 +66,7 @@ function start(host, port) {
return;
}
bots[server].stdin.write(line + '\n');
require('process').on('SIGINT', () => {
require('process').once('SIGINT', () => {
bots[server].kill();
require('process').exit();
});