mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
rx flow: handle child state change during parent cb
This commit is contained in:
parent
753f1d642c
commit
2f4dfa4ea7
1 changed files with 10 additions and 0 deletions
|
@ -1463,6 +1463,16 @@ lws_close_reason(struct lws *wsi, enum lws_close_status status,
|
|||
LWS_EXTERN int
|
||||
_lws_rx_flow_control(struct lws *wsi)
|
||||
{
|
||||
struct lws *wsic = wsi->child_list;
|
||||
|
||||
/* if he has children, do those if they were changed */
|
||||
while (wsic) {
|
||||
if (wsic->rxflow_change_to & LWS_RXFLOW_PENDING_CHANGE)
|
||||
_lws_rx_flow_control(wsic);
|
||||
|
||||
wsic = wsic->sibling_list;
|
||||
}
|
||||
|
||||
/* there is no pending change */
|
||||
if (!(wsi->rxflow_change_to & LWS_RXFLOW_PENDING_CHANGE)) {
|
||||
lwsl_debug("%s: no pending change\n", __func__);
|
||||
|
|
Loading…
Add table
Reference in a new issue