summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-09 16:37:37 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:37:01 -0300
commit62600e4b58d883456d446402106f60201b0ee954 (patch)
tree125628631c7bf10d79c8f49ebc70048cff72ffce /hcid
parentdc38fc68b74e98af1139d7769a1d91a98139af99 (diff)
Only look for removed uuid when doing a browse.
Diffstat (limited to 'hcid')
-rw-r--r--hcid/device.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hcid/device.c b/hcid/device.c
index be34eda8..85b469c1 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -915,10 +915,6 @@ int device_browse(struct btd_device *device, DBusConnection *conn,
req->msg = dbus_message_ref(msg);
req->device = device;
- for (l = device->uuids; l; l = l->next)
- req->uuids_removed = g_slist_append(req->uuids_removed,
- l->data);
-
str2ba(adapter->address, &src);
str2ba(device->address, &dst);
@@ -928,6 +924,9 @@ int device_browse(struct btd_device *device, DBusConnection *conn,
} else {
sdp_uuid16_create(&uuid, uuid_list[req->search_uuid]);
req->browse = TRUE;
+ for (l = device->uuids; l; l = l->next)
+ req->uuids_removed = g_slist_append(req->uuids_removed,
+ l->data);
}
device->discov_active = 1;