On Tue, 2013-09-24 at 19:45 -0300, jprvita at gmail.com wrote: > @@ -745,6 +748,15 @@ static void parse_interfaces_and_properties(pa_bluetooth_discovery *y, DBusMessa > dbus_message_iter_next(&element_i); > } > > + PA_HASHMAP_FOREACH(d, y->devices, state) > + if (!d->adapter && d->adapter_path) { > + d->adapter = pa_hashmap_get(d->discovery->adapters, d->adapter_path); > + if (!d->adapter) { > + pa_log_error("Device %s is child of nonexistent adapter %s", d->path, d->adapter_path); > + d->device_info_valid = -1; > + } > + } As discussed, the DEVICE_CONNECTION_CHANGED hook should be fired after parsing the device properties (I'm mentioning this just to make sure that I remember to check this in v6). -- Tanu