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:
parent
15ce3d03b9
commit
28fb33b120
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue