mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-07-29 18:28:24 +02:00
Merge branch 'backport/stop_in_wait_reconnect_idf4x' into 'idf_v4.x'
Backport Moves state change when stopping the client See merge request espressif/esp-mqtt!151
This commit is contained in:
@ -1571,6 +1571,7 @@ static void esp_mqtt_task(void *pv)
|
||||
esp_transport_close(client->transport);
|
||||
outbox_delete_all_items(client->outbox);
|
||||
xEventGroupSetBits(client->status_bits, STOPPED_BIT);
|
||||
client->state = MQTT_STATE_DISCONNECTED;
|
||||
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user