1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

rxflow just return 0 when changing state

Nobody cares if we changed state, and callers are
increasingly taking nonzero as fail, causing us to
drop the connection when we re-enable rxflow.

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-04-12 11:47:25 +08:00
parent 0f58db3940
commit f004ec594e

View file

@ -162,7 +162,7 @@ _libwebsocket_rx_flow_control(struct libwebsocket *wsi)
if (lws_change_pollfd(wsi, LWS_POLLIN, 0))
return -1;
return 1;
return 0;
}