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:
commit
d4ceff649f
2 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue