diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-04-15 13:30:14 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-04-15 13:30:14 +0000 |
commit | 9a6a6ed3d45968b7edc63a7fd1579f84d91bbd4d (patch) | |
tree | 6402b9d9a4f5274c38039bb196c844a391aeb2b5 | |
parent | 17ec2826d313495aff0e16cf5330317b6c4f61c5 (diff) |
Remove pin request even if status != 0
-rw-r--r-- | hcid/dbus-hci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index f7233285..360a0bae 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -1084,13 +1084,16 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, peer); l = g_slist_find_custom(adapter->pin_reqs, peer, pin_req_cmp); - if (!l || status) + if (!l) goto proceed; d = l->data; adapter->pin_reqs = g_slist_remove(adapter->pin_reqs, l->data); g_free(d); + if (status) + goto proceed; + send_adapter_signal(connection, adapter->dev_id, "BondingCreated", DBUS_TYPE_STRING, &paddr, DBUS_TYPE_INVALID); |