mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
Merge branch 'bugfix/lack_of_break_in_tcp_client_v3.2' into 'release/v3.2'
fix the bug in tcp_client (backport v3.2) See merge request idf/esp-idf!4391
This commit is contained in:
@ -147,6 +147,7 @@ static void tcp_client_task(void *pvParameters)
|
|||||||
int err = connect(sock, (struct sockaddr *)&destAddr, sizeof(destAddr));
|
int err = connect(sock, (struct sockaddr *)&destAddr, sizeof(destAddr));
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
ESP_LOGE(TAG, "Socket unable to connect: errno %d", errno);
|
ESP_LOGE(TAG, "Socket unable to connect: errno %d", errno);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
ESP_LOGI(TAG, "Successfully connected");
|
ESP_LOGI(TAG, "Successfully connected");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user