Merge pull request #56 from TrixterTheTux/rust

Fix Rust server crashing after running for couple of hours
This commit is contained in:
Michael (Parker) Parker 2020-02-07 07:47:04 -08:00 committed by GitHub
commit d8a6525381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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