aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2021-11-09 09:53:11 +0000
committerAndy Green <andy@warmcat.com>2021-11-09 09:54:08 +0000
commit121dd5e8eefdd3eeae2966e2cedc2d64319d2b79 (patch)
tree797e794fa7df66856bd24456f374127e7ee8d3e9
parent3ef446f27ca3a7a3f5af5402521a20246f434fd3 (diff)
downloadlibwebsockets-121dd5e8eefdd3eeae2966e2cedc2d64319d2b79.tar.gz
ss: revert make ss timeout handle underlying wsi gone
-rw-r--r--lib/secure-streams/secure-streams.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/secure-streams/secure-streams.c b/lib/secure-streams/secure-streams.c
index 9d02d5a6..489543db 100644
--- a/lib/secure-streams/secure-streams.c
+++ b/lib/secure-streams/secure-streams.c
@@ -1745,10 +1745,8 @@ lws_ss_to_cb(lws_sorted_usec_list_t *sul)
if (r != LWSSSSRET_DISCONNECT_ME && r != LWSSSSRET_DESTROY_ME)
return;
- if (!h->wsi)
- return;
-
- lws_set_timeout(h->wsi, 1, LWS_TO_KILL_ASYNC);
+ if (h->wsi)
+ lws_set_timeout(h->wsi, 1, LWS_TO_KILL_ASYNC);
_lws_ss_handle_state_ret_CAN_DESTROY_HANDLE(r, h->wsi, &h);
}