mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 00:05:34 +00:00
THeartbeatThread: Use Target var in both places
This commit is contained in:
parent
969cd93358
commit
10322bf24e
@ -35,12 +35,12 @@ void THeartbeatThread::operator()() {
|
||||
|
||||
Body += "&pps=" + Application::PPS();
|
||||
|
||||
T = Http::POST(Application::GetBackendHostname(), "/heartbeat", {}, Body, false);
|
||||
auto Target = "/heartbeat";
|
||||
T = Http::POST(Application::GetBackendHostname(), Target, {}, Body, false);
|
||||
|
||||
if (T.substr(0, 2) != "20") {
|
||||
//Backend system refused server startup!
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||
auto Target = "/heartbeat";
|
||||
T = Http::POST(Application::GetBackendHostname(), Target, {}, Body, false);
|
||||
// TODO backup2 + HTTP flag (no TSL)
|
||||
if (T.substr(0, 2) != "20") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user