From f0adf027206fb407b0c6246b9786fc045427e212 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 15 Dec 2012 06:31:45 +0100 Subject: client: Handle device list when switching controllers --- client/main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3