From e7f9545d0b1350871a1178a02a3340a4663fe4df Mon Sep 17 00:00:00 2001 From: stropee Date: Sun, 23 Mar 2025 13:49:01 +0000 Subject: [PATCH] freertos: fix pipe free https://github.com/warmcat/libwebsockets/issues/3352 --- lib/core-net/close.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core-net/close.c b/lib/core-net/close.c index 851ed2fba..56902ba6d 100644 --- a/lib/core-net/close.c +++ b/lib/core-net/close.c @@ -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;