Skip to content

Commit

Permalink
Merge branch 'backport/stop_in_wait_reconnect_idf4x' into 'idf_v4.x'
Browse files Browse the repository at this point in the history
Backport Moves state change when stopping the client

See merge request espressif/esp-mqtt!151
  • Loading branch information
david-cermak committed Oct 26, 2022
2 parents e7e1ebc + af58f5f commit bb9c8af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bb9c8af

Please sign in to comment.