aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}