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

test-echo: handle WRITABLE callback when nothing to send

This commit is contained in:
Andy Green 2018-01-12 09:52:14 +08:00
parent 3846986851
commit 5494128faf

View file

@ -73,7 +73,8 @@ callback_echo(struct lws *wsi, enum lws_callback_reasons reason, void *user,
case LWS_CALLBACK_SERVER_WRITEABLE:
do_tx:
if ((int)pss->len == -1)
break;
n = LWS_WRITE_CONTINUATION;
if (!pss->continuation) {
if (pss->binary)