Skip to content

Commit

Permalink
Merge branch 'fix_client_destroy' into 'master'
Browse files Browse the repository at this point in the history
fix: Race condition when using destroy

See merge request espressif/esp-mqtt!223
  • Loading branch information
euripedesrocha committed Oct 23, 2024
2 parents 9de024c + 44292cc commit 942fd02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1763,8 +1763,8 @@ 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;
xEventGroupSetBits(client->status_bits, STOPPED_BIT);

vTaskDelete(NULL);
}
Expand Down

0 comments on commit 942fd02

Please sign in to comment.