X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute%2FNode.pm;h=2a9c585dbd91c23a9fc0d27413a2fbbf57bf35c7;hb=9fdfb0d7573d820fb5e2db8930a9679ed6de666f;hp=08b74c737295b15006a959e431a0eaa34b19fd42;hpb=3634fba90a64fe488d237f438d9945d81158da52;p=spider.git diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index 08b74c73..2a9c585d 100644 --- a/perl/Route/Node.pm +++ b/perl/Route/Node.pm @@ -90,12 +90,12 @@ sub del # delete parent from this call's parent list $pref->_delnode($self); - my @ref = $self->_delparent($pref); + $self->_delparent($pref); my @nodes; my $ncall = $self->{call}; # is this the last connection, I have no parents anymore? - unless (@ref) { + unless (@{$self->{parent}}) { foreach my $rcall (@{$self->{nodes}}) { next if grep $rcall eq $_, @_; my $r = Route::Node::get($rcall); @@ -189,6 +189,12 @@ sub nodes return @{$self->{nodes}}; } +sub parents +{ + my $self = shift; + return @{$self->{parent}}; +} + sub rnodes { my $self = shift;