From 1ead9b4c3ca1a3c4dbce0fe4b05b0ea00328755c Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 12 Aug 2017 20:53:49 +0800 Subject: [PATCH] handle same vh protocol reinsert --- lib/pollfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pollfd.c b/lib/pollfd.c index f3f2fbb..25167dd 100644 --- a/lib/pollfd.c +++ b/lib/pollfd.c @@ -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 */ -- 2.7.4