Skip to content

Commit

Permalink
handle same vh protocol reinsert
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Aug 12, 2017
1 parent eed7601 commit 1ead9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pollfd.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 1ead9b4

Please sign in to comment.