From ab98415030c2615ed24c47616a08afbaa8fcf1c0 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 26 Aug 2024 06:12:45 +0200 Subject: [PATCH] Remove commented code snippet that's already in src/handlers/serverErrorHander.js file --- src/index.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/index.js b/src/index.js index e6056a6..0dc543b 100644 --- a/src/index.js +++ b/src/index.js @@ -1813,19 +1813,6 @@ function start(init) { 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 setInterval(function () { if (!closedMaster && !exiting) {