mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-11-16 15:29:25 +01:00
fix(websocket): remove redundant timeout check in client task loop
This commit is contained in:
@@ -1168,12 +1168,6 @@ static void esp_websocket_client_task(void *pv)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (read_select == 0) {
|
||||
ESP_LOGV(TAG, "Read poll timeout: skipping esp_transport_read()...");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case WEBSOCKET_STATE_WAIT_TIMEOUT:
|
||||
|
||||
@@ -1226,6 +1220,8 @@ static void esp_websocket_client_task(void *pv)
|
||||
esp_websocket_client_abort_connection(client, WEBSOCKET_ERROR_TYPE_TCP_TRANSPORT);
|
||||
xSemaphoreGiveRecursive(client->lock);
|
||||
}
|
||||
} else {
|
||||
ESP_LOGV(TAG, "Read poll timeout: skipping esp_transport_poll_read().");
|
||||
}
|
||||
} else if (WEBSOCKET_STATE_WAIT_TIMEOUT == client->state) {
|
||||
// waiting for reconnection or a request to stop the client...
|
||||
|
||||
Reference in New Issue
Block a user