Prepare final release for v2.4.3

This commit is contained in:
Robert Strouse 2024-05-12 11:23:23 -07:00
parent 6077052e9b
commit 4f3a93b336
5 changed files with 5 additions and 3 deletions

View file

@ -355,7 +355,7 @@ int GitUpdater::checkInternet() {
https.setReuse(false);
if(https.begin(sclient, "https://github.com/rstrouse/ESPSomfy-RTS")) {
https.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
https.setTimeout(5000);
https.setTimeout(3000);
int httpCode = https.sendRequest("HEAD");
if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY || httpCode == HTTP_CODE_FOUND) {
err = 0;
@ -496,8 +496,9 @@ int8_t GitUpdater::downloadFile() {
int timeouts = 0;
while(https.connected() && (len > 0 || len == -1) && total < len) {
size_t size = stream->available();
esp_task_wdt_reset();
if(size) {
esp_task_wdt_reset();
timeouts = 0;
if(this->cancelled && !this->lockFS) {
Update.abort();
free(buff);