]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
After a teardown, ask the RTSP thread to terminate... and thus close everything down.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 29 May 2026 16:13:17 +0000 (17:13 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 29 May 2026 16:13:17 +0000 (17:13 +0100)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index e551974a7218e6b6ee0aabc112c1203eff180cb4..84c0572dd02b8f2c36dd45322cc8159e20032605 100644 (file)
--- 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