Allow mixing thread to finish before resetting
authorvolpol <volpol@packet-gain.de>
Sat, 1 Sep 2018 12:37:42 +0000 (14:37 +0200)
committervolpol <volpol@packet-gain.de>
Sat, 1 Sep 2018 12:37:42 +0000 (14:37 +0200)
main.c

diff --git a/main.c b/main.c
index c5c86e5a186463bbb202525f1a1fa2b7e98b6ccf..1b6928bb438c3b94ef446061d3b18b0c7fca502a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -164,7 +164,7 @@ int bbd(void){
     mgmt_init();
     status_ready();
     while (force_quit != FQ_EXIT){
-       if (FQ_RESET == force_quit){
+       if (mix_state <= 0 && FQ_RESET == force_quit){
                        force_quit = FQ_NONE;
                        mix_state = 0;
        }