1
0
Fork 0
forked from svrjs/svrjs

Remove commented code snippet that's already in src/handlers/serverErrorHander.js file

This commit is contained in:
Dorian Niemiec 2024-08-26 06:12:45 +02:00
parent 662528847a
commit ab98415030

View file

@ -1813,19 +1813,6 @@ function start(init) {
SVRJSInitialized = true; SVRJSInitialized = true;
}); });
/*cluster.workers[Object.keys(cluster.workers)[0]].on("message", function (msg) {
if (msg.length >= 8 && msg.indexOf("\x12ERRLIST") == 0) {
var tries = parseInt(msg.substring(8, 9));
var errCode = msg.substring(9);
serverconsole.locerrmessage(serverErrorDescs[errCode] ? serverErrorDescs[errCode] : serverErrorDescs["UNKNOWN"]);
serverconsole.locmessage(tries + " attempts left.");
}
if (msg.length >= 9 && msg.indexOf("\x12ERRCRASH") == 0) {
var errno = errors[msg.substring(9)];
process.exit(errno ? errno : 1);
}
});*/
// Hangup check and restart // Hangup check and restart
setInterval(function () { setInterval(function () {
if (!closedMaster && !exiting) { if (!closedMaster && !exiting) {