mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-15 00:11:08 +02:00
implemented returning OK from close stream handler sending stream EOF. Any other value can break destruction chain which leads to undestructed data
This commit is contained in:
parent
62c750ab8b
commit
d9579d627d
|
@ -369,7 +369,11 @@ ngx_rtmp_cmd_close_stream_init(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
|
|||
static ngx_int_t
|
||||
ngx_rtmp_cmd_close_stream(ngx_rtmp_session_t *s, ngx_rtmp_close_stream_t *v)
|
||||
{
|
||||
return ngx_rtmp_send_user_stream_eof(s, NGX_RTMP_CMD_MSID);
|
||||
ngx_rtmp_send_user_stream_eof(s, NGX_RTMP_CMD_MSID);
|
||||
|
||||
/* Whatever happens return OK
|
||||
* since we should be careful with destruction */
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue