From 7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 15 Feb 2012 21:47:21 +0000 Subject: 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 --- source/cAuthenticator.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'source/cAuthenticator.cpp') diff --git a/source/cAuthenticator.cpp b/source/cAuthenticator.cpp index 9e176e0c5..c82b8cec0 100644 --- a/source/cAuthenticator.cpp +++ b/source/cAuthenticator.cpp @@ -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) -- cgit v1.2.3