From 1e6ae8d94df1248f5ccfe64debdfd3a33e692560 Mon Sep 17 00:00:00 2001 From: Chris Wiggins Date: Sat, 14 May 2016 08:10:59 +1200 Subject: [PATCH] Fix returning 40x on_update handler to correctly disconnect client --- ngx_rtmp_notify_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngx_rtmp_notify_module.c b/ngx_rtmp_notify_module.c index 63681b3..8aea1be 100644 --- a/ngx_rtmp_notify_module.c +++ b/ngx_rtmp_notify_module.c @@ -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,