From 3da25f3aee654f9da83a5d9e182ff6e9d3527305 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 14 Sep 2015 15:11:49 +0800 Subject: [PATCH] when thread terminated normally, set the tid to NULL. --- trunk/src/app/srs_app_thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_thread.cpp b/trunk/src/app/srs_app_thread.cpp index d56624cd9..180446a8b 100644 --- a/trunk/src/app/srs_app_thread.cpp +++ b/trunk/src/app/srs_app_thread.cpp @@ -218,7 +218,8 @@ namespace internal { handler->on_thread_stop(); srs_info("thread %s cycle finished", _name); - // TODO: FIXME: when thread terminated normally, set the tid to NULL. + // when thread terminated normally, set the tid to NULL. + tid = NULL; } void* SrsThread::thread_fun(void* arg)