X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Frinit.pl;h=953a30a92e318fe297f0066f92847d57ed78a713;hb=6624dcdf07d628e8d6a16fc6549edf40be25b7b2;hp=93748ca1e453e8a3645e776086080a5af1e73f2a;hpb=ca8e84c32e70ea8eb1f30e716b7dbdc92f7e5083;p=spider.git diff --git a/cmd/rinit.pl b/cmd/rinit.pl index 93748ca1..953a30a9 100644 --- a/cmd/rinit.pl +++ b/cmd/rinit.pl @@ -18,18 +18,10 @@ foreach $call (@calls) { my $dxchan = DXChannel->get($call); if ($dxchan) { 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()); - $dxchan->send(DXProt::pc20()); + my $parent = Route::Node::get($call); $dxchan->state('init'); + $dxchan->send_local_config; + $dxchan->send(DXProt::pc20()); push @out, $self->msg('init1', $call); } } else {