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:
parent
d069136478
commit
96505bef8f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue