1
0

Can use the 'restart' command again. cAuthenticator no longer asserts because it properly stops when the server is stopped.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@266 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth
2012-02-15 21:47:21 +00:00
parent 5958478c59
commit 7a26fbe471
3 changed files with 16 additions and 3 deletions

View File

@@ -37,9 +37,7 @@ cAuthenticator::cAuthenticator(void) :
cAuthenticator::~cAuthenticator()
{
mShouldTerminate = true;
mQueueNonempty.Set();
Wait();
Stop();
}
@@ -102,6 +100,17 @@ void cAuthenticator::Authenticate(const AString & iUserName, const AString & iSe
void cAuthenticator::Stop(void)
{
mShouldTerminate = true;
mQueueNonempty.Set();
Wait();
}
void cAuthenticator::Execute(void)
{
while (true)