From: Andy Green Date: Sat, 12 Aug 2017 12:53:49 +0000 (+0800) Subject: handle same vh protocol reinsert X-Git-Tag: upstream/2.3.0~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ead9b4c3ca1a3c4dbce0fe4b05b0ea00328755c;p=platform%2Fupstream%2Flibwebsockets.git handle same vh protocol reinsert --- diff --git a/lib/pollfd.c b/lib/pollfd.c index f3f2fbba..25167dd5 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 */