From: minima Date: Wed, 14 Mar 2001 00:09:12 +0000 (+0000) Subject: fix some rubbish in dxprot::finish X-Git-Tag: R_1_47~124 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=112a95fceb1effe735e555bb93ecebd3383e515a;p=spider.git fix some rubbish in dxprot::finish --- diff --git a/perl/DXProt.pm b/perl/DXProt.pm index b85f2391..2677cb7e 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -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