diff --git a/src/main.c b/src/main.c index 289ebe8..2529e4b 100644 --- a/src/main.c +++ b/src/main.c @@ -69,9 +69,9 @@ int main(int argc, char *argv[]) LOG("[INFO]: Initialised stream for `%s`\n", stream.name); end: + stream_stop(&stream); if (pipe) fclose(pipe); - stream_stop(&stream); return ret; }