send extra UUID property change notifications to help the upper layers change state
In the scenario where there are no plugins loaded, bluez initializes and finishes
putting the adapter in a powered down state before the upper layers have a chance
of finishing their initialization. By duplicately sending UUID property changes,
the upper layer notices and moves to the next state.
Change-Id: I673cfb95444d1fee12264e50c709f85a40480068
diff --git a/src/adapter.c b/src/adapter.c
index 0b531d1..0ddbda9 100755
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2990,6 +2990,9 @@
emit_property_changed(connection, adapter->path, ADAPTER_INTERFACE,
"Powered", DBUS_TYPE_BOOLEAN, &powered);
+ /* Duplicately publish the UUIDs to make sure the upper layers know */
+ adapter_emit_uuids_updated(adapter);
+
adapter->up = 0;
adapter->scan_mode = SCAN_DISABLED;
adapter->mode = MODE_OFF;