X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdisconnect.pl;fp=cmd%2Fdisconnect.pl;h=195cdf8c2ae043b9efdf7cb9391a8dc634d5b113;hb=85b6ea316f8da5cb0a9fe716bbb5cd17bd2f5fdb;hp=61ba3bf49ed59f22eacdf5f3cd33584cf11c7fc9;hpb=4facc8538edb1508753cc830af13715b55df1806;p=spider.git diff --git a/cmd/disconnect.pl b/cmd/disconnect.pl index 61ba3bf4..195cdf8c 100644 --- a/cmd/disconnect.pl +++ b/cmd/disconnect.pl @@ -23,6 +23,12 @@ foreach $call (@calls) { } $dxchan->disconnect; push @out, $self->msg('disc2', $call); + } elsif (my $out = grep {$_->{call} eq $call} @main::outstanding_connects) { + unless ($^O =~ /^MS/i) { + kill 'TERM', $out->{pid}; + } + @main::outstanding_connects = grep {$_->{call} ne $call} @main::outstanding_connects; + push @out, $self->msg('disc2', $call); } else { push @out, $self->msg('e10', $call); }