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:
e746a99
)
client CONNECTION_ERROR also allow in LWSS_CLIENT_UNCONNECTED
author
Andy Green
<andy@warmcat.com>
Tue, 7 Jun 2016 09:26:11 +0000
(17:26 +0800)
committer
Andy Green
<andy@warmcat.com>
Tue, 7 Jun 2016 09:26:11 +0000
(17:26 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/client.c
patch
|
blob
|
history
diff --git
a/lib/client.c
b/lib/client.c
index adb275954b9f2ff4c06d789a02db326abfa4a93d..1b0e7fae53c5abaf94dab7e78770701e36b91243 100644
(file)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-837,7
+837,9
@@
bail3:
close_reason = LWS_CLOSE_STATUS_NOSTATUS;
bail2:
- if (wsi->protocol && wsi->state == LWSS_ESTABLISHED) {
+ if (wsi->protocol &&
+ (wsi->state == LWSS_ESTABLISHED ||
+ wsi->state == LWSS_CLIENT_UNCONNECTED)) {
if (isErrorCodeReceived && p) {
wsi->protocol->callback(wsi,
LWS_CALLBACK_CLIENT_CONNECTION_ERROR,