diff --git a/src/THeartbeatThread.cpp b/src/THeartbeatThread.cpp index 8210d1a..59d4eee 100644 --- a/src/THeartbeatThread.cpp +++ b/src/THeartbeatThread.cpp @@ -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() {