qualify server specific api with LWS_NO_SERVER
authorAndy Green <andy.green@linaro.org>
Wed, 21 Oct 2015 01:23:21 +0000 (09:23 +0800)
committerAndy Green <andy.green@linaro.org>
Wed, 21 Oct 2015 01:23:21 +0000 (09:23 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/handshake.c

index bf01f51..df898c6 100644 (file)
@@ -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;