mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-01 22:29:32 +02:00
fixed crash
This commit is contained in:
parent
ed3337d588
commit
8f648495ec
|
@ -123,8 +123,10 @@ ngx_rtmp_netcall_disconnect(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
|
||||||
|
|
||||||
ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_netcall_module);
|
ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_netcall_module);
|
||||||
|
|
||||||
while (ctx->cs) {
|
if (ctx) {
|
||||||
ngx_rtmp_netcall_close(ctx->cs->pc->connection);
|
while (ctx->cs) {
|
||||||
|
ngx_rtmp_netcall_close(ctx->cs->pc->connection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
|
Loading…
Reference in a new issue