mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-18 09:11:08 +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);
|
||||
|
||||
while (ctx->cs) {
|
||||
ngx_rtmp_netcall_close(ctx->cs->pc->connection);
|
||||
if (ctx) {
|
||||
while (ctx->cs) {
|
||||
ngx_rtmp_netcall_close(ctx->cs->pc->connection);
|
||||
}
|
||||
}
|
||||
|
||||
return NGX_OK;
|
||||
|
|
Loading…
Reference in a new issue