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:
parent
6a737b7ca6
commit
fddca26be0
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue