Răsfoiți Sursa

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
jomo 10 ani în urmă
părinte
comite
363f460ee3
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      bin/www.js

+ 1 - 1
bin/www.js

@@ -10,7 +10,7 @@ if (cluster.isMaster) {
 
 
     cluster.on('exit', function (worker, code, signal) {
     cluster.on('exit', function (worker, code, signal) {
         console.error('Worker died. Rebooting a new one.');
         console.error('Worker died. Rebooting a new one.');
-        setTimeout(cluster.fork, 100);
+        cluster.fork();
     });
     });
 
 
     setInterval(cleaner.run, config.cleaning_interval * 1000);
     setInterval(cleaner.run, config.cleaning_interval * 1000);