diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-01-13 15:42:40 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-01-13 15:42:40 +0200 |
commit | cdd935446174aa12d1835d480df49ecfd2f2ab56 (patch) | |
tree | 1f287522c2f47890f368b4fa9c499a3d2bbd342b | |
parent | cd050e431ddbecf708483fe58e288b671010f2d6 (diff) |
Clear authentication info upon disconnect
-rw-r--r-- | src/adapter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c index b2e0b65b..f3a304c7 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2671,6 +2671,9 @@ void adapter_remove_connection(struct btd_adapter *adapter, device_get_address(device, &bdaddr); hci_req_queue_remove(adapter->dev_id, &bdaddr); + if (device_is_authenticating(device)) + device_cancel_authentication(device); + if (device_is_temporary(device)) { const char *path = device_get_path(device); |