diff --git a/paho_mqtt_embedded_c/MQTTClient/src/MQTTClient.h b/paho_mqtt_embedded_c/MQTTClient/src/MQTTClient.h index 6afd927..6aef1bb 100644 --- a/paho_mqtt_embedded_c/MQTTClient/src/MQTTClient.h +++ b/paho_mqtt_embedded_c/MQTTClient/src/MQTTClient.h @@ -457,7 +457,7 @@ int MQTT::Client::readPacket(Timer& tim rc = ipstack.read(readbuf, 1, timer.left_ms()); if (rc != 1) { - rc = 0; // timed out reading packet + // timed out reading packet (0) or closed socket(-1) goto exit; }