summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-03-29 12:25:39 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-29 14:35:22 +0300
commit5f4eb325de63979a284e3b4e2607fec80e38fa01 (patch)
treed9bbc1788088ad15435633ab5f3344514c374833
parentc495077cf8a8c37afd90875ec5a5b16b294be15e (diff)
Fix emitting UUIDs signals when initializing adapters
Drivers get loaded while adapters get initialized, but we shouldn't send any UUID signals before the initialization is fully complete (otherwise we get adapter signals before the Manager.AdapterAdded signals).
-rw-r--r--src/adapter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 589414664..1d6eef55c 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -1025,6 +1025,9 @@ static void adapter_emit_uuids_updated(struct btd_adapter *adapter)
int i;
sdp_list_t *list;
+ if (!adapter->initialized)
+ return;
+
uuids = g_new0(char *, sdp_list_len(adapter->services) + 1);
for (i = 0, list = adapter->services; list; list = list->next) {