merged back NEW_ROUTE into trunk
[spider.git] / cmd / disconnect.pl
index 9207d73b930c5833725821538524e1ac51c242c2..afe9b5419fd38ffc841396f86bedbaf090c3bc03 100644 (file)
@@ -23,8 +23,15 @@ foreach $call (@calls) {
                } 
                $dxchan->disconnect;
                push @out, $self->msg('disc2', $call);
-       } elsif (my $conn = Msg->call($call)) {
+       } elsif (my $conn = Msg->conns($call)) {
                $conn->disconnect;
+               push @out, $self->msg('disc3', $call);
+#      } elsif (my $ref = DXCluster->get_exact($call)) {
+#              my $dxchancall = $ref->dxchancall;
+#              if ($dxchancall eq $main::mycall || !DXChannel->get($dxchancall)) {
+#                      $ref->del;
+#                      push @out, $self->msg('disc4', $call);
+#              }
        } else {
                push @out, $self->msg('e10', $call);
        }