mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine generate_id, never set the cid for current thread
This commit is contained in:
parent
7052a1fafb
commit
bbc168d980
6 changed files with 13 additions and 14 deletions
|
@ -70,7 +70,7 @@ srs_error_t srs_st_init()
|
|||
return srs_error_new(ERROR_ST_SET_EPOLL, "st enable st failed, current is %s", st_get_eventsys_name());
|
||||
}
|
||||
|
||||
// Before ST init, we might have already inited the background cid.
|
||||
// Before ST init, we might have already initialized the background cid.
|
||||
SrsContextId cid = _srs_context->get_id();
|
||||
if (cid.empty()) {
|
||||
cid = _srs_context->generate_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue