From 6c2ae4ad24aa1db10bc88442c7a5e839b97383a4 Mon Sep 17 00:00:00 2001 From: mannol Date: Sat, 8 Mar 2014 02:09:11 +0100 Subject: [PATCH] Don't allow changing device while transmission is active --- src/audio_call.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/audio_call.c b/src/audio_call.c index 778eb9d..1aaa035 100644 --- a/src/audio_call.c +++ b/src/audio_call.c @@ -530,6 +530,11 @@ void cmd_change_device(WINDOW *window, ToxWindow *self, Tox *m, int argc, char ( goto on_error; } + if ( ASettins.ttas ) { /* Transmission is active */ + error_str = "Cannot change device while active transmission"; + goto on_error; + } + _devices type; if ( strcmp(argv[1], "in") == 0 ) /* Input devices */