kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/ws_transport_crash_on_connect_fail' into 'master'
transport_ws: Stop connecting when the parent's connect call has failed See merge request idf/esp-idf!4701pull/3317/head
commit
2cf4a69f9b
|
@ -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);
|
transport_ws_t *ws = esp_transport_get_context_data(t);
|
||||||
if (esp_transport_connect(ws->parent, host, port, timeout_ms) < 0) {
|
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];
|
unsigned char random_key[16];
|
||||||
|
|
Ładowanie…
Reference in New Issue