mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-18 06:10:10 +00:00
THeartbeatThread: Use Target var in both places
This commit is contained in:
@@ -35,12 +35,12 @@ void THeartbeatThread::operator()() {
|
|||||||
|
|
||||||
Body += "&pps=" + Application::PPS();
|
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") {
|
if (T.substr(0, 2) != "20") {
|
||||||
//Backend system refused server startup!
|
//Backend system refused server startup!
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||||
auto Target = "/heartbeat";
|
|
||||||
T = Http::POST(Application::GetBackendHostname(), Target, {}, Body, false);
|
T = Http::POST(Application::GetBackendHostname(), Target, {}, Body, false);
|
||||||
// TODO backup2 + HTTP flag (no TSL)
|
// TODO backup2 + HTTP flag (no TSL)
|
||||||
if (T.substr(0, 2) != "20") {
|
if (T.substr(0, 2) != "20") {
|
||||||
|
|||||||
Reference in New Issue
Block a user