From ac3fd1a688202375612e905da9ee63bd6cd36a6f Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 8 Sep 2025 18:20:00 -0400 Subject: Sink fixes - Invalidate sink entry IDs on reconnect. - Fix A/V latency calculations. - Fix reconnect_timer behavior and log reconnect attempts. Signed-off-by: Andrew Opalach --- src/fruits/cmv/cmv.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/fruits/cmv') diff --git a/src/fruits/cmv/cmv.c b/src/fruits/cmv/cmv.c index 63e035d..840eb6a 100644 --- a/src/fruits/cmv/cmv.c +++ b/src/fruits/cmv/cmv.c @@ -220,10 +220,17 @@ s32 window_system_main(u32 argc, str *argv, void *extra) return EXIT_SUCCESS; } +static bool sigint_force = false; static void sigint_handler(int signum) { (void)signum; - c.desktop.should_quit = 1; + if (sigint_force) { + exit(128+SIGINT); + } else { + c.desktop.should_quit = 1; + log_warn("Attempting graceful exit. ^C again to force exit."); + sigint_force = true; + } } #ifdef NAUNET_ON_WINDOWS -- cgit v1.2.3-101-g0448