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:
parent
b300e11600
commit
e7f9545d0b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue