reformat all

This commit is contained in:
Lion Kortlepel
2020-12-23 23:34:30 +01:00
parent 0f4c08c068
commit a944565fb9
13 changed files with 171 additions and 147 deletions

View File

@@ -56,15 +56,15 @@ std::string RunPromise(const std::string& IP, const std::string& R) {
R = GenerateCall();
if (!CustomIP.empty())
R += "&ip=" + CustomIP;
std::string link ="https://beammp.com/heartbeatv2";
std::string link = "https://beammp.com/heartbeatv2";
T = RunPromise(link, R);
if (T.substr(0,2) != "20") {
if (T.substr(0, 2) != "20") {
//Backend system refused server startup!
std::this_thread::sleep_for(std::chrono::seconds(10));
std::string Backup = "https://backup1.beammp.com/heartbeatv2";
T = RunPromise(Backup, R);
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");
}
}