aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Geiselbrecht <travisg@google.com>2012-03-05 17:38:15 -0800
committerMike Lockwood <lockwood@google.com>2012-04-03 11:24:41 -0700
commit6c25fc5030c6348d216fe48884633369db67da73 (patch)
tree7d5d8bc80b460eec980a52e58f1f4c2820b10666
parent6b7ae119f329e2419719f2148b5a9dc3ed0e504a (diff)
downloadbluez-6c25fc5030c6348d216fe48884633369db67da73.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;