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

windows: handle pipe destroy when no fd associated with pipe wsi

https://github.com/warmcat/libwebsockets/issues/1839
This commit is contained in:
Andy Green 2020-01-31 22:49:28 +00:00
parent 6a737b7ca6
commit fddca26be0

View file

@ -934,7 +934,9 @@ void
lws_destroy_event_pipe(struct lws *wsi)
{
lwsl_info("%s\n", __func__);
__remove_wsi_socket_from_fds(wsi);
if (lws_socket_is_valid(wsi->desc.sockfd))
__remove_wsi_socket_from_fds(wsi);
if (!wsi->context->event_loop_ops->destroy_wsi &&
wsi->context->event_loop_ops->wsi_logical_close) {