1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

the join maybe failed, should use a variable to ensure thread terminated. 1.0.28.

This commit is contained in:
winlin 2015-02-17 21:01:44 +08:00
parent 9a7696a7c2
commit ccc30c70c4
3 changed files with 5 additions and 2 deletions

View file

@ -120,7 +120,9 @@ void SrsThread::stop()
st_thread_interrupt(tid);
// wait the thread to exit.
st_thread_join(tid, NULL);
int ret = st_thread_join(tid, NULL);
// TODO: FIXME: the join maybe failed, should use a variable to ensure thread terminated.
srs_assert(ret == 0);
tid = NULL;
}