get all the debugging finally into the debug files when things go wrong
[spider.git] / perl / DXCron.pm
index c0565fa1e9e8268b2c3c8aed8719398227f91409..eefa25816cac8181432d2edc9c5a3343d5ab40dd 100644 (file)
@@ -13,7 +13,6 @@ use DXUtil;
 use DXM;
 use DXDebug;
 use IO::File;
-use Carp;
 
 use strict;
 
@@ -234,6 +233,11 @@ sub start_connect
        my $call = uc shift;
        my $lccall = lc $call;
 
+       if (grep {$_->{call} eq $call} @main::outstanding_connects) {
+               dbg('cron', "Connect not started, outstanding connect to $call");
+               return;
+       }
+       
        my $prog = "$main::root/local/client.pl";
        $prog = "$main::root/perl/client.pl" if ! -e $prog;