1
0

Fixed authenticator thread restart.

This fixes #209.
This commit is contained in:
madmaxoft 2013-10-07 10:45:03 +02:00
parent c34a9422f7
commit 4c4475f3b5
2 changed files with 14 additions and 1 deletions

View File

@ -100,6 +100,16 @@ void cAuthenticator::Authenticate(int a_ClientID, const AString & a_UserName, co
void cAuthenticator::Start(void)
{
m_ShouldTerminate = false;
super::Start();
}
void cAuthenticator::Stop(void)
{
m_ShouldTerminate = true;

View File

@ -42,7 +42,10 @@ public:
/// Queues a request for authenticating a user. If the auth fails, the user is kicked
void Authenticate(int a_ClientID, const AString & a_UserName, const AString & a_ServerHash);
// Stops the authenticator thread
/// Starts the authenticator thread. The thread may be started and stopped repeatedly
void Start(void);
/// Stops the authenticator thread. The thread may be started and stopped repeatedly
void Stop(void);
private: