Fix parent path introspection data invalidation for multiple levels

In the case that parent path data needs to be invalidated we shouldn't
stop at the immediate parent if it doesn't have our own handler
registered but should continue upwards in the tree until we reach root
or our own handler.
This commit is contained in:
Johan Hedberg 2010-04-30 01:23:45 +03:00 committed by Marcel Holtmann
parent 3f2494a7b0
commit 58b37ddb53
1 changed files with 3 additions and 1 deletions

View File

@ -308,8 +308,10 @@ static void invalidate_parent_data(DBusConnection *conn, const char *child_path)
goto done;
if (!dbus_connection_get_object_path_data(conn, parent_path,
(void *) &data))
(void *) &data)) {
invalidate_parent_data(conn, parent_path);
goto done;
}
if (!data)
goto done;