mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-28 00:47:13 +09:00
Tried to fix occasional crash when saving related to getMac
This commit is contained in:
1 parent
08143b7b84
commit
8742e34d9f
1 file changed
+4
@@ -420,6 +420,7 @@ function instanceManagement() {
|
||||
playerCount: instanceInfo.playerCount || 0,
|
||||
instanceName: instance,
|
||||
}
|
||||
try {
|
||||
require('getmac').getMac(function (err, mac) {
|
||||
if (err) throw err
|
||||
payload.mac = mac
|
||||
@@ -434,6 +435,9 @@ function instanceManagement() {
|
||||
}
|
||||
});
|
||||
});
|
||||
} catch (e){
|
||||
console.log("##### getMac crashed, but we don't really give a shit because we are probably closing down #####");
|
||||
}
|
||||
},1000)});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user