Removed the bad 5000ms add in timeout detection

This commit is contained in:
Francois BIOT
2023-04-17 01:17:58 +02:00
parent 25602ec2f5
commit 67ce97e523

View File

@@ -339,7 +339,7 @@ void MqttClient::clientAlive(uint32_t more_seconds)
void MqttClient::loop() void MqttClient::loop()
{ {
if (keep_alive && (millis() >= alive - 5000)) if (keep_alive && (millis() >= alive))
{ {
if (tcp_client && tcp_client->connected()) if (tcp_client && tcp_client->connected())
{ {