mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
donot release stream when busy
This commit is contained in:
parent
3da25f3aee
commit
8be3c875af
1 changed files with 4 additions and 1 deletions
|
@ -840,7 +840,10 @@ int SrsRtmpConn::publishing(SrsSource* source)
|
|||
// when the acquire error in the midlle-way, the publish state changed,
|
||||
// but failed, so we must cleanup it.
|
||||
// @see https://github.com/simple-rtmp-server/srs/issues/474
|
||||
release_publish(source, vhost_is_edge);
|
||||
// @remark when stream is busy, should never release it.
|
||||
if (ret != ERROR_SYSTEM_STREAM_BUSY) {
|
||||
release_publish(source, vhost_is_edge);
|
||||
}
|
||||
|
||||
http_hooks_on_unpublish();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue