~indicator-network-developers/connman/trunk

« back to all changes in this revision

Viewing changes to gdbus/object.c

  • Committer: Marcel Holtmann
  • Author(s): Johan Hedberg
  • Date: 2010-04-29 22:31:03 UTC
  • Revision ID: git-v1:d8f0947356f95ff641d2fcdc1eb8dfd09707eaba
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
308
308
                goto done;
309
309
 
310
310
        if (!dbus_connection_get_object_path_data(conn, parent_path,
311
 
                                                        (void *) &data))
 
311
                                                        (void *) &data)) {
 
312
                invalidate_parent_data(conn, parent_path);
312
313
                goto done;
 
314
        }
313
315
 
314
316
        if (!data)
315
317
                goto done;