projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed7601
)
handle same vh protocol reinsert
author
Andy Green
<andy@warmcat.com>
Sat, 12 Aug 2017 12:53:49 +0000
(20:53 +0800)
committer
Andy Green
<andy@warmcat.com>
Sat, 12 Aug 2017 12:53:49 +0000
(20:53 +0800)
lib/pollfd.c
patch
|
blob
|
history
diff --git
a/lib/pollfd.c
b/lib/pollfd.c
index
f3f2fbb
..
25167dd
100644
(file)
--- 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) {
- lws
l_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 */