Fix unexpected type for backend region

This commit is contained in:
SaltySnail
2026-07-04 19:38:07 +02:00
parent 569d46769a
commit 75d844d5a6
5 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -22,6 +22,7 @@
#include "Client.h"
#include "Common.h"
#include "Http.h"
#include "RegionHandler.h"
// #include "SocketIO.h"
#include <nlohmann/json.hpp>
@@ -63,7 +64,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();
RegionHandler::TopLevelDomainFailed();
T = Http::POST(Url + Target, Body, "application/json", &ResponseCode, { { "api-v", "2" } });
}