Fix spurious DeviceDisappeared signals after name resolution
update_oor_devices() was being called twice, first after a inquiry, then
after name resolution. This caused the just found devices to be always
reported as "disappeared" after name resolution.
diff --git a/src/adapter.c b/src/adapter.c
index 69d3da0..096d684 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2641,13 +2641,14 @@
}
if (discov_active == FALSE) {
- update_oor_devices(adapter);
if (type & DISC_RESOLVNAME) {
if (adapter_resolve_names(adapter) == 0) {
adapter->state |= STATE_RESOLVNAME;
return;
}
}
+
+ update_oor_devices(adapter);
} else if (adapter->disc_sessions && main_opts.discov_interval)
adapter->scheduler_id = g_timeout_add_seconds(
main_opts.discov_interval,