mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
implemented stat_stub decrement for nginx_stat to work properly
This commit is contained in:
@ -239,6 +239,10 @@ ngx_rtmp_close_connection(ngx_connection_t *c)
|
|||||||
|
|
||||||
ngx_log_debug0(NGX_LOG_DEBUG_RTMP, c->log, 0, "close connection");
|
ngx_log_debug0(NGX_LOG_DEBUG_RTMP, c->log, 0, "close connection");
|
||||||
|
|
||||||
|
#if (NGX_STAT_STUB)
|
||||||
|
(void) ngx_atomic_fetch_add(ngx_stat_active, -1);
|
||||||
|
#endif
|
||||||
|
|
||||||
pool = c->pool;
|
pool = c->pool;
|
||||||
ngx_close_connection(c);
|
ngx_close_connection(c);
|
||||||
ngx_destroy_pool(pool);
|
ngx_destroy_pool(pool);
|
||||||
|
Reference in New Issue
Block a user