From d8a7e5d36632dcf477f6b569326f2cf3985186cb Mon Sep 17 00:00:00 2001 From: Volo Zyko Date: Mon, 3 Jul 2023 11:03:51 +0300 Subject: [PATCH] Set exitflag before cleaning up This will signal to all related code that the program is about to exit. --- src/dsd_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dsd_main.c b/src/dsd_main.c index 86e98d8..a33edff 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -1334,6 +1334,9 @@ if (opts->audio_out_type == 0) void cleanupAndExit (dsd_opts * opts, dsd_state * state) { + // Signal that everything should shutdown. + exitflag = 1; + noCarrier (opts, state); if (opts->wav_out_f != NULL) {