mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-26 15:21:48 +08:00
fixed crash
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user