mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
2ed2513f08
commit
ea9a5f26d9
18 changed files with 174 additions and 274 deletions
|
@ -124,8 +124,12 @@ int SrsCoroutine::cid()
|
|||
|
||||
int SrsCoroutine::cycle()
|
||||
{
|
||||
if (!context && _srs_context) {
|
||||
context = _srs_context->generate_id();
|
||||
if (_srs_context) {
|
||||
if (context) {
|
||||
_srs_context->set_id(context);
|
||||
} else {
|
||||
context = _srs_context->generate_id();
|
||||
}
|
||||
}
|
||||
srs_info("Thread.cycle: Start with cid=%d, err=%d", context, err);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue