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,8 +608,6 @@ ngx_rtmp_live_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
|
||||
if (ctx->publishing) {
|
||||
ngx_rtmp_send_status(s, "NetStream.Unpublish.Success",
|
||||
"status", "Stop publishing");
|
||||
}
|
||||
|
||||
if (!lacf->idle_streams) {
|
||||
for (pctx = ctx->stream->ctx; pctx; pctx = pctx->next) {
|
||||
if (pctx->publishing == 0) {
|
||||
@ -620,6 +618,7 @@ ngx_rtmp_live_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ctx->stream->ctx) {
|
||||
ctx->stream = NULL;
|
||||
|
Reference in New Issue
Block a user