ota.cpp: streaming timeout changed

This commit is contained in:
Klaus K Wilting 2018-11-04 21:12:19 +01:00
parent f2513584e2
commit 26f4bd8f09

View File

@ -155,6 +155,7 @@ bool do_ota_update() {
while (redirect) {
if (currentHost != prevHost) {
client.stop();
client.setTimeout(RESPONSE_TIMEOUT_MS);
client.setCACert(bintray.getCertificate(currentHost));
if (!client.connect(currentHost.c_str(), port)) {
ESP_LOGI(TAG, "Redirect detected, but cannot connect to %s",