After a teardown, ask the RTSP thread to terminate... and thus close everything down.
This commit is contained in:
@@ -2276,8 +2276,7 @@ void handle_teardown(rtsp_conn_info *conn, __attribute__((unused)) rtsp_message
|
|||||||
|
|
||||||
resp->respcode = 200;
|
resp->respcode = 200;
|
||||||
msg_add_header(resp, "Connection", "close");
|
msg_add_header(resp, "Connection", "close");
|
||||||
// debug(1,"Bogus exit for valgrind -- remember to comment it out!.");
|
conn->stop = 1;
|
||||||
// exit(EXIT_SUCCESS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_AIRPLAY_2
|
#ifdef CONFIG_AIRPLAY_2
|
||||||
@@ -2308,9 +2307,7 @@ void handle_teardown_2(rtsp_conn_info *conn, __attribute__((unused)) rtsp_messag
|
|||||||
}
|
}
|
||||||
resp->respcode = 200;
|
resp->respcode = 200;
|
||||||
msg_add_header(resp, "Connection", "close");
|
msg_add_header(resp, "Connection", "close");
|
||||||
|
conn->stop = 1;
|
||||||
// debug(1,"Bogus exit for valgrind -- remember to comment it out!.");
|
|
||||||
// sps_shutdown(TOE_normal); // ask for a normal exit
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user