From a721957f20ec79b1a19537e5c43d3a12e4286c6c Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 13 Feb 2009 18:51:57 -0300 Subject: Fix emitting duplicated PropertyChanged signals for device Name property. --- src/dbus-hci.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/dbus-hci.c') diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 5ced560f..d75ee2fc 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -869,20 +869,8 @@ void hcid_dbus_remote_name(bdaddr_t *local, bdaddr_t *peer, uint8_t status, NULL); } - if (device) { - char alias[248]; - const char *dev_path = device_get_path(device); - - emit_property_changed(connection, dev_path, - DEVICE_INTERFACE, "Name", - DBUS_TYPE_STRING, &name); - - if (read_device_alias(srcaddr, dstaddr, - alias, sizeof(alias)) < 1) - emit_property_changed(connection, dev_path, - DEVICE_INTERFACE, "Alias", - DBUS_TYPE_STRING, &name); - } + if (device) + device_set_name(device, name); proceed: /* remove from remote name request list */ -- cgit