Refactor region handler

This commit is contained in:
SaltySnail
2026-06-27 21:04:23 +02:00
parent beea63bef7
commit 569d46769a
6 changed files with 14 additions and 29 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ void THeartbeatThread::operator()() {
for (const auto& Url : Application::GetBackendUrlsInOrder()) {
T = Http::POST(Url + Target, Body, "application/json", &ResponseCode, { { "api-v", "2" } });
if (T == Http::ErrorString || ResponseCode != 200) {
Application::TopLevelDomainFailed(true);
Application::TopLevelDomainFailed();
T = Http::POST(Url + Target, Body, "application/json", &ResponseCode, { { "api-v", "2" } });
}