winlin

donot release stream when busy

@@ -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