From afb18ccff7add306c31f1def40bce16b7dcef1d2 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 10 Aug 2021 13:01:07 +0200 Subject: [PATCH] THeartbeatThread: fix isAuth being in the wrong scope --- src/THeartbeatThread.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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() {