summaryrefslogtreecommitdiff
path: root/gdbus/object.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-04-30 01:23:45 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2010-04-30 01:23:45 +0300
commit800e8fa2575c80d236312451f43ca5f4780524a6 (patch)
tree4c57e8bc2658e23a139f0738ca82b5619ffc0c5e /gdbus/object.c
parent9bbcbff03911ed1094ce4f2d4aa57df1282621d2 (diff)
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.
Diffstat (limited to 'gdbus/object.c')
-rw-r--r--gdbus/object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 592e2d3c..ff696414 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -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;