From 5f4eb325de63979a284e3b4e2607fec80e38fa01 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 29 Mar 2011 12:25:39 +0300 Subject: 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). --- src/adapter.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit v1.2.3