commit | 3928f6178a16583a7675f9bf1d7c9365876aa6e3 | [log] [tgz] |
---|---|---|
author | Andy Green <andy.green@linaro.org> | Fri Jul 20 12:58:38 2012 +0800 |
committer | Andy Green <andy.green@linaro.org> | Fri Jul 20 12:58:38 2012 +0800 |
tree | d239952156b565d39af7a0bffe159034419fa668 | |
parent | 915316644cb47ec5a2d2ad3b5a233e5cd2b73db5 [diff] [blame] |
restore accept error as closure signal Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/test-server/test-client.c b/test-server/test-client.c index 9d1d9ef..ffd6365 100644 --- a/test-server/test-client.c +++ b/test-server/test-client.c
@@ -287,6 +287,9 @@ while (n >= 0 && !was_closed) { n = libwebsocket_service(context, 1000); + if (n < 0) + continue; + if (wsi_mirror == NULL) { /* create a client websocket using mirror protocol */