Fix returning 40x on_update handler to correctly disconnect client

This commit is contained in:
Chris Wiggins 2016-05-14 08:10:59 +12:00
parent 281d2226d9
commit 1e6ae8d94d

View file

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