1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine cid for source

This commit is contained in:
winlin 2020-10-31 22:04:53 +08:00
parent 365d3b8bda
commit a28f98581e
3 changed files with 7 additions and 7 deletions

View file

@ -2555,10 +2555,10 @@ void SrsSource::on_unpublish()
srs_trace("cleanup when unpublish");
_can_publish = true;
_source_id = SrsContextId();
if (!_source_id.empty()) {
_pre_source_id = _source_id;
}
_source_id = SrsContextId();
// notify the handler.
srs_assert(handler);