forked from svrjs/svrjs
Remove commented code snippet that's already in src/handlers/serverErrorHander.js file
This commit is contained in:
parent
662528847a
commit
ab98415030
1 changed files with 0 additions and 13 deletions
13
src/index.js
13
src/index.js
|
@ -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) {
|
||||||
|
|
Reference in a new issue