Always unregister the whole object hierarchy
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Apr 2008 01:59:08 +0000 (03:59 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 7 Apr 2008 01:59:08 +0000 (03:59 +0200)
src/iface.c

index e6e88ce..dc24dd2 100644 (file)
@@ -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);