nominally working system!
[spider.git] / perl / cluster.pl
index a3e915a614ebb45e41686a7ef7162f1d4aff6738..ddcf721448582d18f1100ec363586cf677c511ee 100755 (executable)
@@ -591,7 +591,9 @@ $script->run($main::me) if $script;
 
 #open(DB::OUT, "|tee /tmp/aa");
 
-Mojo::IOLoop->start;
+my $main_loop = Mojo::IOLoop->recurring($idle_interval => \&idle_loop);
+
+Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
 
 cease(0);
 exit(0);