summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 12:38:00 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 12:38:00 +0200
commit211eb019b129e94c75fffd7438611f0a2ad59e4c (patch)
tree19b4115354047cbc08fd0c2585065eb31e8630db /src
parent22fdd674937bb927a00b35b84cca66dda76c6fd5 (diff)
RemoveDevice() should also update adapter->connections
Diffstat (limited to 'src')
-rw-r--r--src/adapter.c1
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);