From 363f460ee3e6d4451aa8b50f9ca9746e91cd7bd8 Mon Sep 17 00:00:00 2001 From: jomo Date: Tue, 6 Jan 2015 18:38:03 +0100 Subject: [PATCH] remove Timeout Why was this here in the first place? The nodejs docs don't mention anything about this http://nodejs.org/api/cluster.html#cluster_event_exit --- bin/www.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/www.js b/bin/www.js index 221f5ea..c0c397b 100644 --- a/bin/www.js +++ b/bin/www.js @@ -10,7 +10,7 @@ if (cluster.isMaster) { cluster.on('exit', function (worker, code, signal) { console.error('Worker died. Rebooting a new one.'); - setTimeout(cluster.fork, 100); + cluster.fork(); }); setInterval(cleaner.run, config.cleaning_interval * 1000);