diff options
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/device.c | 7 |
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; |