mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from srs2
This commit is contained in:
commit
b881166f9a
2 changed files with 6 additions and 3 deletions
|
@ -237,11 +237,13 @@ namespace internal
|
|||
// readly terminated now.
|
||||
really_terminated = true;
|
||||
|
||||
// when thread terminated normally, also disposed.
|
||||
// we must set to disposed before the on_thread_stop, which may free the thread.
|
||||
// @see https://github.com/ossrs/srs/issues/546
|
||||
disposed = true;
|
||||
|
||||
handler->on_thread_stop();
|
||||
srs_info("thread %s cycle finished", _name);
|
||||
|
||||
// when thread terminated normally, also disposed.
|
||||
disposed = true;
|
||||
}
|
||||
|
||||
void* SrsThread::thread_fun(void* arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue