diff --git a/src/midi.c b/src/midi.c index ff7dc7b..35be598 100644 --- a/src/midi.c +++ b/src/midi.c @@ -1,6 +1,5 @@ -#include #include -#include +#include #include "types.h" @@ -61,5 +60,5 @@ bool midi_background_listen(const MidiDevice *device, log_info("(%s) background acquisition stopped by main thread (pid: %d)", device->name, pid); - return false; + exit(EXIT_SUCCESS); } diff --git a/src/state.c b/src/state.c index 12cebfb..75e36a5 100644 --- a/src/state.c +++ b/src/state.c @@ -1,5 +1,6 @@ #include #include +#include #include "types.h" @@ -619,7 +620,7 @@ bool state_background_write(SharedContext *context, } log_info("(state) background writing stopped by main thread (pid: %d)", pid); - return false; + exit(EXIT_SUCCESS); } void state_init(SharedContext *context, const StateConfig *state_config,