summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-15 06:31:45 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-12-15 06:31:45 +0100
commitf0adf027206fb407b0c6246b9786fc045427e212 (patch)
tree17cd6ed1a8dd01f6074651b67a5a44f50277e2f2
parentd88e90d41048358b67dc2c9b52d0cdc3bb8703de (diff)
client: Handle device list when switching controllers
-rw-r--r--client/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/main.c b/client/main.c
index b8eb7078c..ddfe51148 100644
--- a/client/main.c
+++ b/client/main.c
@@ -428,8 +428,14 @@ static void cmd_select(const char *arg)
return;
}
+ if (default_ctrl == proxy)
+ return;
+
default_ctrl = proxy;
print_adapter(proxy, NULL);
+
+ g_list_free(dev_list);
+ dev_list = NULL;
}
static void cmd_devices(const char *arg)