summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dbus-hci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 3a25abfc..9090c4c3 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -1468,10 +1468,9 @@ void hcid_dbus_conn_complete(bdaddr_t *local, uint8_t status, uint16_t handle,
device = adapter_find_device(adapter, paddr);
if (device) {
+ dev_path = device_get_path(device);
- dev_path = device_get_path(device);
-
- dbus_connection_emit_property_changed(connection,
+ dbus_connection_emit_property_changed(connection,
dev_path, DEVICE_INTERFACE,
"Connected", DBUS_TYPE_BOOLEAN,
&connected);