mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-08-28 12:51:01 +00:00
Fix unexpected type for backend region
This commit is contained in:
@@ -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" } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user