diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-11-30 22:45:19 +0200 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-11-30 22:45:19 +0200 | 
| commit | 0f3950ba2f7fdfda5a1491a3d3d567119b699b3f (patch) | |
| tree | 519867777d93d0574661714bf29a074e2e6eeaeb | |
| parent | ff4f2f6cbe6ef16f7c79433c557f00998e8d353d (diff) | |
Use the correct first_init variable
Use the stored first_init since adapter->first_init will always be FALSE here.
| -rw-r--r-- | src/adapter.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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);  	} | 
