正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -840,7 +840,10 @@ int SrsRtmpConn::publishing(SrsSource* source) | @@ -840,7 +840,10 @@ int SrsRtmpConn::publishing(SrsSource* source) | ||
840 | // when the acquire error in the midlle-way, the publish state changed, | 840 | // when the acquire error in the midlle-way, the publish state changed, |
841 | // but failed, so we must cleanup it. | 841 | // but failed, so we must cleanup it. |
842 | // @see https://github.com/simple-rtmp-server/srs/issues/474 | 842 | // @see https://github.com/simple-rtmp-server/srs/issues/474 |
843 | - release_publish(source, vhost_is_edge); | 843 | + // @remark when stream is busy, should never release it. |
844 | + if (ret != ERROR_SYSTEM_STREAM_BUSY) { | ||
845 | + release_publish(source, vhost_is_edge); | ||
846 | + } | ||
844 | 847 | ||
845 | http_hooks_on_unpublish(); | 848 | http_hooks_on_unpublish(); |
846 | 849 |
-
请 注册 或 登录 后发表评论