fix the bug in tcp_client
Closes https://github.com/espressif/esp-idf/issues/3058
This commit is contained in:
parent
83d7b4591c
commit
d651ee3d28
|
@ -147,6 +147,7 @@ static void tcp_client_task(void *pvParameters)
|
|||
int err = connect(sock, (struct sockaddr *)&destAddr, sizeof(destAddr));
|
||||
if (err != 0) {
|
||||
ESP_LOGE(TAG, "Socket unable to connect: errno %d", errno);
|
||||
break;
|
||||
}
|
||||
ESP_LOGI(TAG, "Successfully connected");
|
||||
|
||||
|
|
Loading…
Reference in a new issue