mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
THeartbeatThread: fix missing response code
This commit is contained in:
parent
4b92532203
commit
a2dc42c5f5
@ -54,11 +54,11 @@ void THeartbeatThread::operator()() {
|
|||||||
SentryReportError(Application::GetBackendHostname() + Target);
|
SentryReportError(Application::GetBackendHostname() + Target);
|
||||||
|
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||||
T = Http::POST(Application::GetBackup1Hostname(), Target, {}, Body, false);
|
T = Http::POST(Application::GetBackup1Hostname(), Target, {}, Body, false, &ResponseCode);
|
||||||
if (T.substr(0, 2) != "20") {
|
if (T.substr(0, 2) != "20") {
|
||||||
SentryReportError(Application::GetBackup1Hostname() + Target);
|
SentryReportError(Application::GetBackup1Hostname() + Target);
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||||
T = Http::POST(Application::GetBackup2Hostname(), Target, {}, Body, false);
|
T = Http::POST(Application::GetBackup2Hostname(), Target, {}, Body, false, &ResponseCode);
|
||||||
if (T.substr(0, 2) != "20") {
|
if (T.substr(0, 2) != "20") {
|
||||||
warn("Backend system refused server! Server might not show in the public list");
|
warn("Backend system refused server! Server might not show in the public list");
|
||||||
isAuth = false;
|
isAuth = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user