Skip to content

Commit

Permalink
Merge pull request #56 from TrixterTheTux/rust
Browse files Browse the repository at this point in the history
Fix Rust server crashing after running for couple of hours
  • Loading branch information
parkervcp authored Feb 7, 2020
2 parents 061f20e + 224758d commit d8a6525
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8a6525

Please sign in to comment.