summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c3
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);