1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

coverity: 62181: remove needless wsi check

This commit is contained in:
Andy Green 2020-08-18 13:07:17 +01:00
parent d5497d5f55
commit 84a8ada0fd

View file

@ -185,8 +185,8 @@ callback_sspc_client(struct lws *wsi, enum lws_callback_reasons reason,
return -1;
}
if (wsi && (h->state == LPCSCLI_LOCAL_CONNECTED ||
h->state == LPCSCLI_ONWARD_CONNECT))
if (h->state == LPCSCLI_LOCAL_CONNECTED ||
h->state == LPCSCLI_ONWARD_CONNECT)
lws_set_timeout(wsi, 0, 0);
break;