Set exitflag before cleaning up

This will signal to all related code that the program
is about to exit.
This commit is contained in:
Volo Zyko
2023-07-03 11:03:51 +03:00
parent 8ccc241743
commit d8a7e5d366

View File

@@ -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)
{