THeartbeatThread: fix isAuth being in the wrong scope

This commit is contained in:
Lion Kortlepel 2021-08-10 13:01:07 +02:00 committed by Lion
parent 4659a9362d
commit afb18ccff7

View File

@ -65,19 +65,19 @@ void THeartbeatThread::operator()() {
}
}
}
}
if (!isAuth) {
if (T == "2000") {
info(("Authenticated!"));
isAuth = true;
} else if (T == "200") {
info(("Resumed authenticated session!"));
isAuth = true;
if (!isAuth) {
if (T == "2000") {
info(("Authenticated!"));
isAuth = true;
} else if (T == "200") {
info(("Resumed authenticated session!"));
isAuth = true;
}
}
}
//SocketIO::Get().SetAuthenticated(isAuth);
//SocketIO::Get().SetAuthenticated(isAuth);
}
}
std::string THeartbeatThread::GenerateCall() {