- # is this the last connection?
- $self->_del_users;
- unless (@$ref) {
- push @nodes, $self->del_nodes;
+ # is this the last connection, I have no parents anymore?
+ unless (@{$self->{parent}}) {
+ foreach my $rcall (@{$self->{nodes}}) {
+ next if grep $rcall eq $_, @_;
+ my $r = Route::Node::get($rcall);
+ push @nodes, $r->del($self, $ncall, @_) if $r;
+ }
+ $self->_del_users;