mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
use lws_close not raw close
https://github.com/warmcat/libwebsockets/issues/400 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
ec1296a667
commit
d5060d25a1
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ lws_client_reset(struct lws *wsi, int ssl, const char *address, int port, const
|
|||
if (lws_hdr_simple_create(wsi, _WSI_TOKEN_CLIENT_HOST, host))
|
||||
return NULL;
|
||||
|
||||
close(wsi->sock);
|
||||
compatible_close(wsi->sock);
|
||||
remove_wsi_socket_from_fds(wsi);
|
||||
wsi->sock = LWS_SOCK_INVALID;
|
||||
wsi->state = LWSS_CLIENT_UNCONNECTED;
|
||||
|
|
Loading…
Add table
Reference in a new issue