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. 2.0.119.

This commit is contained in:
winlin 2015-02-17 21:03:39 +08:00
commit d4ceff649f
2 changed files with 9 additions and 1 deletions

View file

@ -121,7 +121,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;
}