code cleanup

This commit is contained in:
jomo
2015-02-14 21:48:47 +01:00
parent 8750b863a8
commit de5bad8702
5 changed files with 9 additions and 9 deletions

View File

@@ -10,8 +10,8 @@ if (cluster.isMaster) {
cluster.fork();
}
cluster.on("exit", function (worker, code, signal) {
logging.error("Worker died. Rebooting a new one.");
cluster.on("exit", function (worker) {
logging.error("Worker #" + worker.id + " died. Rebooting a new one.");
setTimeout(cluster.fork, 100);
});