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

freertos: fix pipe free

https://github.com/warmcat/libwebsockets/issues/3352
This commit is contained in:
stropee 2025-03-23 13:49:01 +00:00 committed by Andy Green
parent b300e11600
commit e7f9545d0b

View file

@ -939,7 +939,11 @@ __lws_close_free_wsi_final(struct lws *wsi)
if (pt->pipe_wsi == wsi)
pt->pipe_wsi = NULL;
if (pt->dummy_pipe_fds[0] == wsi->desc.sockfd)
{
#if !defined(LWS_PLAT_FREERTOS)
pt->dummy_pipe_fds[0] = LWS_SOCK_INVALID;
#endif
}
}
wsi->desc.sockfd = LWS_SOCK_INVALID;