Skip to content

Commit fa15faf

Browse files
committed
Call httpClientRestart, not httpClientShutdown, to allow retry after timeout
1 parent 214cb27 commit fa15faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Everywhere/HTTP_Client.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void httpClientUpdate()
355355
if (!httpClient->begin(*httpSecureClient->getClient(), THINGSTREAM_ZTPURL))
356356
{
357357
systemPrintln("ERROR: Failed to start httpClient!\r\n");
358-
httpClientShutdown();
358+
httpClientRestart(); // I _think_ we want to restart here - i.e. retry after the timeout?
359359
break;
360360
}
361361

@@ -401,7 +401,7 @@ void httpClientUpdate()
401401
// "HTTP response error -11: "
402402
if (httpResponseCode == -11)
403403
{
404-
httpClientShutdown(); // Try again
404+
httpClientRestart(); // I _think_ we want to restart here - i.e. retry after the timeout?
405405
break;
406406
}
407407

0 commit comments

Comments
 (0)