From 2a3408cf403e02cd7798dbd82ca48cdb7f0145e4 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Wed, 4 Apr 2012 19:26:32 +0400 Subject: [PATCH] fixed netcall close --- ngx_rtmp_netcall_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ngx_rtmp_netcall_module.c b/ngx_rtmp_netcall_module.c index 766f2d6..b8741b5 100644 --- a/ngx_rtmp_netcall_module.c +++ b/ngx_rtmp_netcall_module.c @@ -123,11 +123,12 @@ ngx_rtmp_netcall_disconnect(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ngx_chain_t *in) { ngx_rtmp_netcall_ctx_t *ctx; + ngx_rtmp_netcall_session_t *cs; ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_netcall_module); if (ctx) { - while (ctx->cs) { + for (cs = ctx->cs; cs; cs = cs->next) { ngx_rtmp_netcall_detach(ctx->cs->pc->connection); } }