mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-31 11:18:01 +02:00
Merge branch 'bugfix/set_client_state_on_timeout' into 'idf'
Bugfix: state not correctly set on disconnect -- PR from GitHub See merge request idf/esp-mqtt!18
This commit is contained in:
@ -891,6 +891,7 @@ static void esp_mqtt_task(void *pv)
|
|||||||
|
|
||||||
if (!client->config->auto_reconnect) {
|
if (!client->config->auto_reconnect) {
|
||||||
client->run = false;
|
client->run = false;
|
||||||
|
client->state = MQTT_STATE_UNKNOWN;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (platform_tick_get_ms() - client->reconnect_tick > client->wait_timeout_ms) {
|
if (platform_tick_get_ms() - client->reconnect_tick > client->wait_timeout_ms) {
|
||||||
|
Reference in New Issue
Block a user