From 28fb33b1205bf7a2d28f2ead03eeba336702636a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 1 Aug 2019 18:25:38 +0100 Subject: [PATCH] ws: return properly if we spot no ws on ws wsi --- lib/roles/ws/ops-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/ws/ops-ws.c b/lib/roles/ws/ops-ws.c index 2550a14a5..aa8ad3315 100644 --- a/lib/roles/ws/ops-ws.c +++ b/lib/roles/ws/ops-ws.c @@ -973,7 +973,7 @@ rops_handle_POLLIN_ws(struct lws_context_per_thread *pt, struct lws *wsi, if (!wsi->ws) { lwsl_err("ws role wsi with no ws\n"); - return 1; + return LWS_HPI_RET_PLEASE_CLOSE_ME; } // lwsl_notice("%s: %s\n", __func__, wsi->protocol->name);