handle same vh protocol reinsert
This commit is contained in:
parent
a9f74f2dbe
commit
5a38d88fdd
1 changed files with 2 additions and 2 deletions
|
@ -449,8 +449,8 @@ lws_same_vh_protocol_insert(struct lws *wsi, int n)
|
|||
// wsi->same_vh_protocol_prev);
|
||||
|
||||
if (wsi->same_vh_protocol_prev || wsi->same_vh_protocol_next) {
|
||||
lwsl_err("Attempted to attach wsi twice to same vh prot\n");
|
||||
assert(0);
|
||||
lws_same_vh_protocol_remove(wsi);
|
||||
lwsl_notice("Attempted to attach wsi twice to same vh prot\n");
|
||||
}
|
||||
|
||||
wsi->same_vh_protocol_prev = /* guy who points to us */
|
||||
|
|
Loading…
Add table
Reference in a new issue