}
$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);
+ } elsif (my $conn = Msg->conns($call)) {
+ $conn->disconnect;
} else {
push @out, $self->msg('e10', $call);
}