X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Frinit.pl;h=b49b2dbedc53a64ed5f75fa85ba7080fb59b022f;hb=5f756bad4a3629664e4e3bc4d9cdd60674503583;hp=93748ca1e453e8a3645e776086080a5af1e73f2a;hpb=95345d68a5a8ac618021c0786c7234258b903f6e;p=spider.git diff --git a/cmd/rinit.pl b/cmd/rinit.pl index 93748ca1..b49b2dbe 100644 --- a/cmd/rinit.pl +++ b/cmd/rinit.pl @@ -20,14 +20,9 @@ foreach $call (@calls) { if ($dxchan->is_node) { # first clear out any nodes on this dxchannel - my @gonenodes = grep { $_->dxchan == $dxchan } DXNode::get_all(); - foreach my $node (@gonenodes) { - next if $node->dxchan == $DXProt::me; - next unless $node->dxchan == $dxchan; - DXProt::broadcast_ak1a(DXProt::pc21($node->call, 'Gone, re-init') , $dxchan) unless $dxchan->{isolate}; - $node->del(); - } -# $dxchan->send(DXProt::pc38()); + my $node = Route::Node::get($self->{call}); + my @rout = $node->del_nodes if $node; + DXProt::route_pc21($self, @rout); $dxchan->send(DXProt::pc20()); $dxchan->state('init'); push @out, $self->msg('init1', $call);