Fix build regression for WITH_WEBSOCKETS=yes on non-Linux systems.
This commit is contained in:
parent
38b930776c
commit
ecf6f9079a
@ -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
|
||||
==================
|
||||
|
||||
|
@ -212,7 +212,7 @@ int mux_poll__handle(struct mosquitto__listener_sock *listensock, int listensock
|
||||
for(i=0; i<listensock_count; i++){
|
||||
if(pollfds[i].revents & (POLLIN | POLLPRI)){
|
||||
#ifdef WITH_WEBSOCKETS
|
||||
if(listensock[i]->listener.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
|
||||
|
Loading…
Reference in New Issue
Block a user