From e472cee76cba7b41bf3a6350de2bdb7bd18abcdb Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 29 May 2026 17:13:17 +0100 Subject: [PATCH] After a teardown, ask the RTSP thread to terminate... and thus close everything down. --- rtsp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rtsp.c b/rtsp.c index e551974a..84c0572d 100644 --- a/rtsp.c +++ b/rtsp.c @@ -2276,8 +2276,7 @@ void handle_teardown(rtsp_conn_info *conn, __attribute__((unused)) rtsp_message resp->respcode = 200; msg_add_header(resp, "Connection", "close"); - // debug(1,"Bogus exit for valgrind -- remember to comment it out!."); - // exit(EXIT_SUCCESS); + conn->stop = 1; } #ifdef CONFIG_AIRPLAY_2 @@ -2308,9 +2307,7 @@ void handle_teardown_2(rtsp_conn_info *conn, __attribute__((unused)) rtsp_messag } resp->respcode = 200; msg_add_header(resp, "Connection", "close"); - - // debug(1,"Bogus exit for valgrind -- remember to comment it out!."); - // sps_shutdown(TOE_normal); // ask for a normal exit + conn->stop = 1; } #endif