mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed idle_stream off
This commit is contained in:
@ -608,15 +608,14 @@ ngx_rtmp_live_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
|
|||||||
if (ctx->publishing) {
|
if (ctx->publishing) {
|
||||||
ngx_rtmp_send_status(s, "NetStream.Unpublish.Success",
|
ngx_rtmp_send_status(s, "NetStream.Unpublish.Success",
|
||||||
"status", "Stop publishing");
|
"status", "Stop publishing");
|
||||||
}
|
if (!lacf->idle_streams) {
|
||||||
|
for (pctx = ctx->stream->ctx; pctx; pctx = pctx->next) {
|
||||||
if (!lacf->idle_streams) {
|
if (pctx->publishing == 0) {
|
||||||
for (pctx = ctx->stream->ctx; pctx; pctx = pctx->next) {
|
ss = pctx->session;
|
||||||
if (pctx->publishing == 0) {
|
ngx_log_debug0(NGX_LOG_DEBUG_RTMP, ss->connection->log, 0,
|
||||||
ss = pctx->session;
|
"live: no publisher");
|
||||||
ngx_log_debug0(NGX_LOG_DEBUG_RTMP, ss->connection->log, 0,
|
ngx_rtmp_finalize_session(ss);
|
||||||
"live: no publisher");
|
}
|
||||||
ngx_rtmp_finalize_session(ss);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user