Merge branch 'master' into rewrite-lua

This commit is contained in:
Lion
2021-12-09 12:04:33 +01:00
committed by GitHub
2 changed files with 16 additions and 2 deletions

View File

@@ -3,8 +3,12 @@
#include "Client.h"
#include "Http.h"
//#include "SocketIO.h"
#include <rapidjson/document.h>
#include <rapidjson/rapidjson.h>
#include <sstream>
namespace json = rapidjson;
void THeartbeatThread::operator()() {
RegisterThread("Heartbeat");
std::string Body;
@@ -85,10 +89,13 @@ void THeartbeatThread::operator()() {
} else if (T == "200") {
beammp_info(("Resumed authenticated session!"));
isAuth = true;
} else {
if (Message.empty()) {
Message = "Backend didn't provide a reason";
}
error("Backend REFUSED the auth key. " + Message);
}
}
// SocketIO::Get().SetAuthenticated(isAuth);
}
}