mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54:55 -05:00
maybe .once will fix it???
This commit is contained in:
parent
e4741e9542
commit
9c62efc76c
1 changed files with 1 additions and 1 deletions
2
run.js
2
run.js
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue