Fix Rust server crashing after running for couple of hours

This commit is contained in:
Stepan Fedotov 2020-02-07 11:06:58 +02:00
parent 7b6869070a
commit 224758d24a

View File

@ -43,8 +43,10 @@ gameProcess.stderr.on('data', filter);
gameProcess.on('exit', function (code, signal) { gameProcess.on('exit', function (code, signal) {
exited = true; exited = true;
console.log("Game process exited with code " + code + "."); if (code) {
process.exit(code); console.log("Main game process exited with code " + code);
// process.exit(code);
}
}); });
function initialListener(data) { function initialListener(data) {