diff --git a/src/dbus_fast/message_bus.py b/src/dbus_fast/message_bus.py index 73a9d9a9..2e7ae132 100644 --- a/src/dbus_fast/message_bus.py +++ b/src/dbus_fast/message_bus.py @@ -673,6 +673,8 @@ def _introspect_export_path(self, path: str) -> intr.Node: children = set() for export_path in self._path_exports: + if not export_path.startswith(path): + continue try: child_path = export_path.split(path, maxsplit=1)[1] except IndexError: