X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute.pm;h=b5c02f0998bb437b7430cc65db71b787220594cd;hb=183573e742b5233e3b7ac6882770d16942a10542;hp=0150d5bfd3b92b7c7d3cf8c391ce30ca1f089756;hpb=3517495c96b980bf3b9364ae2b218505b2b40582;p=spider.git diff --git a/perl/Route.pm b/perl/Route.pm index 0150d5bf..b5c02f09 100644 --- a/perl/Route.pm +++ b/perl/Route.pm @@ -241,7 +241,7 @@ sub alldxchan foreach my $p (@{$self->{parent}}) { my $dxchan = DXChannel->get($p); if ($dxchan) { - push @dxchan, $dxchan if grep $dxchan ne $_, @dxchan; + push @dxchan, $dxchan unless grep $dxchan == $_, @dxchan; } else { next if $p eq $main::mycall; # the root my $ref = $self->get($p); @@ -255,7 +255,7 @@ sub dxchan { my $self = shift; my $dxchan = DXChannel->get($self->{call}); - return $dxchan = $dxchan; + return $dxchan if $dxchan; my @dxchan = $self->alldxchan; return undef unless @dxchan;