From 141398b744c9f934133b319574ff55344277fae0 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Mon, 5 Mar 2012 17:38:15 -0800 Subject: 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 --- src/adapter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index 0b531d11..0ddbda94 100755 --- a/src/adapter.c +++ b/src/adapter.c @@ -2990,6 +2990,9 @@ int btd_adapter_stop(struct btd_adapter *adapter) 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; -- cgit v1.2.3