mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
merge srs2.
This commit is contained in:
commit
8935fe8897
1 changed files with 6 additions and 1 deletions
|
@ -798,9 +798,14 @@ void SrsSource::dispose_all()
|
||||||
|
|
||||||
int SrsSource::cycle_all()
|
int SrsSource::cycle_all()
|
||||||
{
|
{
|
||||||
|
int ret = ERROR_SUCCESS;
|
||||||
|
|
||||||
|
// TODO: FIXME: support source cleanup.
|
||||||
|
// @see https://github.com/ossrs/srs/issues/714
|
||||||
int cid = _srs_context->get_id();
|
int cid = _srs_context->get_id();
|
||||||
int ret = do_cycle_all();
|
ret = do_cycle_all();
|
||||||
_srs_context->set_id(cid);
|
_srs_context->set_id(cid);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue