diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-12-15 06:31:45 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-15 06:31:45 +0100 |
commit | f0adf027206fb407b0c6246b9786fc045427e212 (patch) | |
tree | 17cd6ed1a8dd01f6074651b67a5a44f50277e2f2 | |
parent | d88e90d41048358b67dc2c9b52d0cdc3bb8703de (diff) |
client: Handle device list when switching controllers
-rw-r--r-- | client/main.c | 6 |
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) |