[libnet-dbus-perl] 179/335: Unregister all children
Intrigeri
intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.
commit 2c76f14f5d63ae6c079a6b46bf14ba0fec227f43
Author: Daniel P. Berrange <dan at berrange.com>
Date: Thu Jan 26 19:20:31 2006 +0000
Unregister all children
---
lib/Net/DBus/Object.pm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/lib/Net/DBus/Object.pm b/lib/Net/DBus/Object.pm
index 103d38a..01b5b23 100644
--- a/lib/Net/DBus/Object.pm
+++ b/lib/Net/DBus/Object.pm
@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-# $Id: Object.pm,v 1.20 2006/01/06 15:53:44 dan Exp $
+# $Id: Object.pm,v 1.21 2006/01/26 19:20:31 dan Exp $
=pod
@@ -220,6 +220,10 @@ sub disconnect {
return unless $self->{parent};
+ foreach my $child (keys %{$self->{children}}) {
+ $self->_unregister_child($self->{children}->{$child});
+ }
+
if ($self->{parent}->isa(__PACKAGE__)) {
$self->{parent}->_unregister_child($self);
} else {
@@ -253,8 +257,7 @@ sub _register_child {
my $object = shift;
$self->get_service->_register_object($object);
- # Experiment in handling dispatch for child objects internally
- #$self->{children}->{$object->get_object_path} = $object;
+ $self->{children}->{$object->get_object_path} = $object;
}
@@ -263,8 +266,7 @@ sub _unregister_child {
my $object = shift;
$self->get_service->_unregister_object($object);
- # Experiment in handling dispatch for child objects internally
- #delete $self->{children}->{$object->get_object_path};
+ delete $self->{children}->{$object->get_object_path};
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git
More information about the Pkg-perl-cvs-commits
mailing list