transport_ws: Stop connecting when the parent's connect call has failed

Merges https://github.com/espressif/esp-idf/pull/3164
pull/3317/head
Bas Verhoeven 2019-03-12 10:44:27 +01:00 zatwierdzone przez David Cermak
rodzic 3ab9d00219
commit 16ee5663ad
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -80,7 +80,8 @@ static int ws_connect(esp_transport_handle_t t, const char *host, int port, int
{
transport_ws_t *ws = esp_transport_get_context_data(t);
if (esp_transport_connect(ws->parent, host, port, timeout_ms) < 0) {
ESP_LOGE(TAG, "Error connect to ther server");
ESP_LOGE(TAG, "Error connect to the server");
return -1;
}
unsigned char random_key[16];