diff --git a/test-apps/test-echo.c b/test-apps/test-echo.c index 0691b04b..ab75e19b 100644 --- a/test-apps/test-echo.c +++ b/test-apps/test-echo.c @@ -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)