summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-hci.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-04-09 21:20:19 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-04-09 21:20:19 +0000
commita1c12f0ffeeb1bd2ab9cb287ce4e16125492c521 (patch)
treee8244c02547390f68694b24b00a4d8d1fb4657f8 /hcid/dbus-hci.c
parent3d9966f38f1d6ca12c9e9e2eace5181ba04844b4 (diff)
Fix temporary device removal not emitting DeviceRemoved.
Diffstat (limited to 'hcid/dbus-hci.c')
-rw-r--r--hcid/dbus-hci.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index e27df03f..0a06138a 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -2055,11 +2055,9 @@ void hcid_dbus_disconn_complete(bdaddr_t *local, uint8_t status,
device->path, DEVICE_INTERFACE,
"Connected", DBUS_TYPE_BOOLEAN,
&connected);
- if (device->temporary) {
- adapter->devices = g_slist_remove(adapter->devices,
- device);
- device_remove(device, connection);
- }
+ if (device->temporary)
+ adapter_remove_device(connection, adapter,
+ device);
}
}