aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Geiselbrecht <travisg@google.com>2012-03-05 17:38:15 -0800
committerTravis Geiselbrecht <travisg@google.com>2012-03-06 14:11:43 -0800
commit141398b744c9f934133b319574ff55344277fae0 (patch)
treee5a2aab86c790224a5cfe981724398907c3cffd2
parentf063ba55aae83b014a5236b7879e5d6e81fc5a42 (diff)
downloadbluez-141398b744c9f934133b319574ff55344277fae0.tar.gz
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
-rwxr-xr-xsrc/adapter.c3
1 files changed, 3 insertions, 0 deletions
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;