diff --git a/lib/core/context.c b/lib/core/context.c index c1132d975..b9b724edf 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -1688,9 +1688,9 @@ lws_pt_destroy(struct lws_context_per_thread *pt) pt->pipe_wsi = NULL; } - if (pt->dummy_pipe_fds[0] + if ((pt->dummy_pipe_fds[0] || pt->dummy_pipe_fds[1]) #if !defined(WIN32) - && (int)pt->dummy_pipe_fds[0] != -1 + && ((int)pt->dummy_pipe_fds[0] != -1 || (int)pt->dummy_pipe_fds[1] != -1) #endif ) { struct lws wsi;