Skip to content

Commit

Permalink
test-echo: handle WRITABLE callback when nothing to send
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Jan 12, 2018
1 parent d069136 commit 96505be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test-apps/test-echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 96505be

Please sign in to comment.