From 425dafdb4b29c2dc415bb6e299cd575103481b04 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 7 Apr 2008 03:59:08 +0200 Subject: [PATCH] Always unregister the whole object hierarchy --- src/iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iface.c b/src/iface.c index e6e88ce..dc24dd2 100644 --- a/src/iface.c +++ b/src/iface.c @@ -1253,7 +1253,7 @@ static void device_removed(LibHalContext *ctx, const char *udi) interfaces = g_slist_remove(interfaces, iface); g_dbus_unregister_interface(conn, iface->path, CONNMAN_IFACE_INTERFACE); - g_dbus_unregister_object(conn, iface->path); + g_dbus_unregister_object_hierarchy(conn, iface->path); break; } } @@ -1357,7 +1357,7 @@ static void hal_cleanup(void *data) g_dbus_unregister_interface(conn, iface->path, CONNMAN_IFACE_INTERFACE); - g_dbus_unregister_object(conn, iface->path); + g_dbus_unregister_object_hierarchy(conn, iface->path); } g_slist_free(interfaces); -- 2.7.4