From 8f6ac1b64a184619c7d07e4cda3cb96b0552a5de Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 12 Sep 2019 13:31:01 +0100 Subject: [PATCH] Fix for websockets regression. --- src/loop.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/loop.c b/src/loop.c index b72534c4..f0b1e18e 100644 --- a/src/loop.c +++ b/src/loop.c @@ -601,7 +601,12 @@ int mosquitto_main_loop(struct mosquitto_db *db, mosq_sock_t *listensock, int li * will soon, so for now websockets clients are second class * citizens. */ if(db->config->listeners[i].ws_context){ +#if LWS_LIBRARY_VERSION_NUMBER > 3002000 libwebsocket_service(db->config->listeners[i].ws_context, -1); +#else + libwebsocket_service(db->config->listeners[i].ws_context, 0); +#endif + } } if(db->config->have_websockets_listener){