THeartbeatThread: remove second try to heartbeat url

This commit is contained in:
Lion Kortlepel 2021-08-10 12:40:55 +02:00 committed by Lion
parent f4ffa2cdda
commit c0faff5b05

View File

@ -40,10 +40,6 @@ void THeartbeatThread::operator()() {
if (T.substr(0, 2) != "20") {
//Backend system refused server startup!
std::this_thread::sleep_for(std::chrono::milliseconds(500));
T = Http::POST(Application::GetBackendHostname(), Target, {}, Body, false);
// TODO backup2 + HTTP flag (no TSL)
if (T.substr(0, 2) != "20") {
warn("Backend system refused server! Server might not show in the public list");
debug("server returned \"" + T + "\"");
if (T.size() > std::string("YOU_SHALL_NOT_PASS").size()
@ -56,7 +52,6 @@ void THeartbeatThread::operator()() {
}
isAuth = false;
}
}
if (!isAuth) {
if (T == "2000") {