summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-hci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/dbus-hci.c')
-rw-r--r--hcid/dbus-hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 61d64c19..d59a4788 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -1904,7 +1904,7 @@ void hcid_dbus_disconn_complete(bdaddr_t *local, uint8_t status,
dev_path, DEVICE_INTERFACE,
"Connected", DBUS_TYPE_BOOLEAN,
&connected);
- if (device->temporary) {
+ if (device_is_temporary(device)) {
debug("Removing temporary device %s", destination);
adapter_remove_device(connection, adapter, device);
}