From 2721e3ca9db6a5b554eb556709bf061d77b96f99 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 21 Oct 2015 09:23:21 +0800 Subject: [PATCH] qualify server specific api with LWS_NO_SERVER Signed-off-by: Andy Green --- lib/handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/handshake.c b/lib/handshake.c index bf01f51..df898c6 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -199,10 +199,11 @@ read_ok: http_complete: lwsl_debug("libwebsocket_read: http_complete\n"); +#ifndef LWS_NO_SERVER /* Did the client want to keep the HTTP connection going? */ if (lws_http_transaction_completed(wsi)) goto bail; - +#endif /* If we have more data, loop back around: */ if (len) goto http_new; -- 2.7.4