Merge pull request #56 from TrixterTheTux/rust
Fix Rust server crashing after running for couple of hours
This commit is contained in:
commit
d8a6525381
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user