mirror of git://git.sysmocom.de/ofono
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:
parent
3f2494a7b0
commit
58b37ddb53
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue