From 2c93b25c73d560af05d5ffcd34a8c9f6905858f0 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Mon, 12 Mar 2018 22:24:05 +0200 Subject: [PATCH] Subject: echo: exit if --times is specified --- test-apps/test-echo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-apps/test-echo.c b/test-apps/test-echo.c index 4ae26bf4..df9ae73b 100644 --- a/test-apps/test-echo.c +++ b/test-apps/test-echo.c @@ -143,6 +143,8 @@ do_rx: goto do_rx; #endif lwsl_notice("Client RX: %s", (char *)in); + if (times == 0) + force_exit = 1; break; case LWS_CALLBACK_CLIENT_WRITEABLE: