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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user