Attempt to fix MQTT reconnects while keeping good response

Attempt to fix MQTT reconnects while keeping good response
This commit is contained in:
Theo Arends 2019-04-06 15:22:25 +02:00
parent 148192b80d
commit 756400de19

View File

@ -822,8 +822,8 @@ bool Xdrv02(uint8_t function)
if (Settings.flag.mqtt_enabled) {
switch (function) {
case FUNC_EVERY_100_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
if (MqttIsConnected()) { MqttClient.loop(); }
case FUNC_EVERY_50_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
MqttClient.loop();
break;
#ifdef USE_WEBSERVER
case FUNC_WEB_ADD_BUTTON: