fix some rubbish in dxprot::finish
[spider.git] / perl / DXProt.pm
index 060fb48a860f63de95d0430f0788ed4b498ab3e5..2677cb7ef56cb3a6df58876d2cbcccec314d793f 100644 (file)
@@ -1158,10 +1158,9 @@ sub finish
        my @gonenodes = grep { $_->dxchan != $self && $_->dxchan != $me } DXNode::get_all();
        my $node;
        
-       foreach $node (@gonenodes) {
-               next if $node->call eq $call;
-               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