nonzero return from client parser is close

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-03-17 18:40:08 +08:00
parent d2ec7adbab
commit 564056d27c

View file

@ -416,7 +416,7 @@ cleanup:
case LWS_CONNMODE_WS_CLIENT:
for (n = 0; n < len; n++)
if (libwebsocket_client_rx_sm(
wsi, *buf++) < 0) {
wsi, *buf++)) {
lwsl_debug("client rx has bailed\n");
goto bail;
}