From 079c54bbe77156a078d069d72319db564980638c Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 9 Mar 2021 07:21:07 +0800 Subject: [PATCH] Add important comment for ST --- trunk/src/app/srs_app_st.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_st.cpp b/trunk/src/app/srs_app_st.cpp index 9985f2b44..911680df7 100755 --- a/trunk/src/app/srs_app_st.cpp +++ b/trunk/src/app/srs_app_st.cpp @@ -163,6 +163,8 @@ SrsFastCoroutine::SrsFastCoroutine(string n, ISrsCoroutineHandler* h, SrsContext SrsFastCoroutine::~SrsFastCoroutine() { stop(); + + // TODO: FIXME: We must assert the cycle is done. srs_freep(trd_err); } @@ -207,7 +209,6 @@ srs_error_t SrsFastCoroutine::start() void SrsFastCoroutine::stop() { if (disposed) { - // TODO: FIXME: If previous stop is wait on st_thread_join, this call should assert fail. return; } disposed = true;