From 0f3950ba2f7fdfda5a1491a3d3d567119b699b3f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 30 Nov 2008 22:45:19 +0200 Subject: Use the correct first_init variable Use the stored first_init since adapter->first_init will always be FALSE here. --- src/adapter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/adapter.c') diff --git a/src/adapter.c b/src/adapter.c index 13507ef6..f39b8198 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2578,7 +2578,7 @@ proceed: /* retrieve the active connections: address the scenario where * the are active connections before the daemon've started */ - if (adapter->first_init) { + if (first_init) { struct hci_conn_list_req *cl = NULL; struct hci_conn_info *ci; @@ -2602,7 +2602,7 @@ proceed: ADAPTER_INTERFACE, "Powered", DBUS_TYPE_BOOLEAN, &powered); - if (adapter->first_init) { + if (first_init) { load_drivers(adapter); load_devices(adapter); } -- cgit