echo: fix debug build
https://github.com/warmcat/libwebsockets/issues/716#issuecomment-267377856
This commit is contained in:
parent
27d650b89b
commit
f5f9196936
1 changed files with 5 additions and 0 deletions
|
@ -66,6 +66,11 @@ callback_echo(struct lws *wsi, enum lws_callback_reasons reason, void *user,
|
|||
|
||||
#ifndef LWS_NO_SERVER
|
||||
|
||||
case LWS_CALLBACK_ESTABLISHED:
|
||||
pss->index = 0;
|
||||
pss->len = -1;
|
||||
break;
|
||||
|
||||
case LWS_CALLBACK_SERVER_WRITEABLE:
|
||||
do_tx:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue