From c664eca0541eb9e813c0ead7fa596200eb51b45b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 10 Mar 2019 01:36:14 +0100 Subject: [PATCH] Get rid of an unneeded sleep and message on Futatabi exit. --- futatabi/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/futatabi/main.cpp b/futatabi/main.cpp index 9585dd4..7c5f660 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -535,8 +535,10 @@ void record_thread_func() current_pts = pts; } - fprintf(stderr, "%s: Hit EOF. Waiting one second and trying again...\n", global_flags.stream_source.c_str()); - sleep(1); + if (!should_quit.load()) { + fprintf(stderr, "%s: Hit EOF. Waiting one second and trying again...\n", global_flags.stream_source.c_str()); + sleep(1); + } start_pts = last_pts + TIMEBASE; } -- 2.39.2