1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ws: return properly if we spot no ws on ws wsi

This commit is contained in:
Andy Green 2019-08-01 18:25:38 +01:00
parent 15ce3d03b9
commit 28fb33b120

View file

@ -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);