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