mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 06:16:04 +00:00
Merge branch 'master' into rewrite-lua
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user