if ($dxchan->is_ak1a) {
# first clear out any nodes on this dxchannel
- my @gonenodes = map { $_->dxchan == $dxchan ? $_ : () } DXNode::get_all();
+ my @gonenodes = grep { $_->dxchan == $dxchan } DXNode::get_all();
foreach my $node (@gonenodes) {
next if $node->dxchan == $DXProt::me;
- next if $node->dxchan == $dxchan;
+ next unless $node->dxchan == $dxchan;
DXProt::broadcast_ak1a(DXProt::pc21($node->call, 'Gone, re-init') , $dxchan) unless $dxchan->{isolate};
$node->del();
}