summaryrefslogtreecommitdiffstats
path: root/source/cAuthenticator.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 22:47:21 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 22:47:21 +0100
commit7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b (patch)
treeaaeec8b2a6d0ce2a02d089e53505b5b6d054f812 /source/cAuthenticator.cpp
parentFixed a deadlock in WorldStorage (diff)
downloadcuberite-7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b.tar
cuberite-7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b.tar.gz
cuberite-7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b.tar.bz2
cuberite-7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b.tar.lz
cuberite-7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b.tar.xz
cuberite-7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b.tar.zst
cuberite-7a26fbe4712efd2d1f41fd6c588e483d3db0ba1b.zip
Diffstat (limited to 'source/cAuthenticator.cpp')
-rw-r--r--source/cAuthenticator.cpp15
1 files changed, 12 insertions, 3 deletions
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)