6. make set/isolate and acc/route mutually exclusive (and issue appropriate
[spider.git] / perl / Route / Node.pm
index 08b74c737295b15006a959e431a0eaa34b19fd42..49e241dddf5b6b7ef265861a5d2498da1c0af903 100644 (file)
@@ -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);