mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-11 06:41:08 +02:00
Fix returning 40x on_update handler to correctly disconnect client
This commit is contained in:
parent
281d2226d9
commit
1e6ae8d94d
|
@ -1502,7 +1502,7 @@ ngx_rtmp_notify_update_handle(ngx_rtmp_session_t *s,
|
|||
|
||||
rc = ngx_rtmp_notify_parse_http_retcode(s, in);
|
||||
|
||||
if ((!nacf->update_strict && rc == NGX_ERROR) ||
|
||||
if ((!nacf->update_strict && (rc == NGX_ERROR || rc == NGX_DECLINED) ) ||
|
||||
(nacf->update_strict && rc != NGX_OK))
|
||||
{
|
||||
ngx_log_error(NGX_LOG_INFO, s->connection->log, 0,
|
||||
|
|
Loading…
Reference in a new issue