From 25abbb4f02e3e5c94d650131c2a9781f0b6b0186 Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 9 Jan 2015 20:13:22 +0100 Subject: [PATCH] Add timeout again otherwise you'll get a little bit of spam when workers die instantly --- bin/www.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/www.js b/bin/www.js index 8c35ad1..4cc4e93 100644 --- a/bin/www.js +++ b/bin/www.js @@ -12,7 +12,7 @@ if (cluster.isMaster) { cluster.on("exit", function (worker, code, signal) { logging.error("Worker died. Rebooting a new one."); - cluster.fork(); + setTimeout(cluster.fork, 100); }); setInterval(cleaner.run, config.cleaning_interval * 1000);