From ecf6f9079a9ffb3b305b903eca01a3687ff967f5 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 10 Dec 2020 23:33:46 +0000 Subject: [PATCH] Fix build regression for WITH_WEBSOCKETS=yes on non-Linux systems. --- ChangeLog.txt | 7 +++++++ src/mux_poll.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 03e49047..14bc5086 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,10 @@ +2.0.2 - 2020-12-10 +================== + +Broker: +- Fix build regression for WITH_WEBSOCKETS=yes on non-Linux systems. + + 2.0.1 - 2020-12-10 ================== diff --git a/src/mux_poll.c b/src/mux_poll.c index fb8f56d3..7f256916 100644 --- a/src/mux_poll.c +++ b/src/mux_poll.c @@ -212,7 +212,7 @@ int mux_poll__handle(struct mosquitto__listener_sock *listensock, int listensock for(i=0; ilistener.ws_context){ + if(listensock[i].listener->ws_context){ /* Nothing needs to happen here, because we always call lws_service in the loop. * The important point is we've been woken up for this listener. */ }else