Fix websockets 3.2 causing slow connection on non-websockets listeners

Closes #1406. Thanks to pbrenna.
pull/1600/head
Roger A. Light 6 years ago
parent c3c737eda7
commit 855772ec06

@ -590,7 +590,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, mosq_sock_t *listensock, int li
* will soon, so for now websockets clients are second class * will soon, so for now websockets clients are second class
* citizens. */ * citizens. */
if(db->config->listeners[i].ws_context){ if(db->config->listeners[i].ws_context){
libwebsocket_service(db->config->listeners[i].ws_context, 0); libwebsocket_service(db->config->listeners[i].ws_context, -1);
} }
} }
if(db->config->have_websockets_listener){ if(db->config->have_websockets_listener){

Loading…
Cancel
Save