diff options
-rw-r--r-- | src/adapter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c index 458d536f..b2e0b65b 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -955,6 +955,7 @@ void adapter_remove_device(DBusConnection *conn, struct btd_adapter *adapter, delete_entry(&adapter->bdaddr, "profiles", dstaddr); adapter->devices = g_slist_remove(adapter->devices, device); + adapter->connections = g_slist_remove(adapter->connections, device); adapter_update_devices(adapter); |