Potential auth fix

This commit is contained in:
Anonymous275
2021-01-07 15:29:06 +02:00
parent 61776d6a1b
commit fc4bc14ce5
3 changed files with 29 additions and 14 deletions

View File

@@ -69,15 +69,14 @@ std::string RunPromise(const std::string& IP, const std::string& R) {
}
}
//Server Authenticated
if (T.length() == 4)
info(("Server authenticated"));
R.clear();
T.clear();
info(T);
if (!isAuth) {
WebsocketInit();
if (T.length() == 4)info(("Authenticated!"));
else info(("Resumed authenticated session!"));
isAuth = true;
}
std::this_thread::sleep_for(std::chrono::seconds(5));
//std::this_thread::sleep_for(std::chrono::seconds(5));
}
}
void HBInit() {