fix some rubbish in dxprot::finish
authorminima <minima>
Wed, 14 Mar 2001 00:09:12 +0000 (00:09 +0000)
committerminima <minima>
Wed, 14 Mar 2001 00:09:12 +0000 (00:09 +0000)
perl/DXProt.pm

index b85f2391d90f0f084d45af53853e02616cd93d58..2677cb7ef56cb3a6df58876d2cbcccec314d793f 100644 (file)
@@ -1158,11 +1158,9 @@ sub finish
        my @gonenodes = grep { $_->dxchan != $self && $_->dxchan != $me } DXNode::get_all();
        my $node;
        
-       foreach $node (DXNode::get_all) {
-               next if $node->call eq $call;
-               next if $node->call eq $main::mycall;
-               broadcast_ak1a(pc21($node->call, 'Gone') , $self) unless $self->{isolate}; 
-               $node->del();
+       foreach my $dxchan (DXChannel::get_all_nodes) {
+               next if $dxchan == $self || $dxchan == $me;
+               broadcast_ak1a(pc21($dxchan->call, 'Gone') , $self) unless $self->{isolate}; 
        }
 
        # remove outstanding pings