mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-26 15:21:48 +08:00
fixed closing rtmp connection
This commit is contained in:
@ -1165,6 +1165,8 @@ ngx_rtmp_close_connection(ngx_connection_t *c)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c->destroyed = 1;
|
||||||
|
|
||||||
s = c->data;
|
s = c->data;
|
||||||
cmcf = ngx_rtmp_get_module_main_conf(s, ngx_rtmp_core_module);
|
cmcf = ngx_rtmp_get_module_main_conf(s, ngx_rtmp_core_module);
|
||||||
cscf = ngx_rtmp_get_module_srv_conf(s, ngx_rtmp_core_module);
|
cscf = ngx_rtmp_get_module_srv_conf(s, ngx_rtmp_core_module);
|
||||||
@ -1192,7 +1194,6 @@ ngx_rtmp_close_connection(ngx_connection_t *c)
|
|||||||
ngx_rtmp_free_shared_buf(cscf, s->out->buf);
|
ngx_rtmp_free_shared_buf(cscf, s->out->buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
c->destroyed = 1;
|
|
||||||
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