浏览代码

Add timeout again

otherwise you'll get a little bit of spam when workers die instantly
jomo 10 年之前
父节点
当前提交
25abbb4f02
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/www.js

+ 1 - 1
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);