From 499745c1c7a865941b3c102532777c19dfb92ca4 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 18 Feb 2012 17:53:22 +0000 Subject: Thread-safe chunk generation, storage and generator are queried for progress while initializing server Note that this commit breaks foliage generation - there are no trees in the chunks generated! git-svn-id: http://mc-server.googlecode.com/svn/trunk@292 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cAuthenticator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cAuthenticator.cpp') diff --git a/source/cAuthenticator.cpp b/source/cAuthenticator.cpp index c82b8cec0..0c482a9a1 100644 --- a/source/cAuthenticator.cpp +++ b/source/cAuthenticator.cpp @@ -113,7 +113,7 @@ void cAuthenticator::Stop(void) void cAuthenticator::Execute(void) { - while (true) + for (;;) { cCSLock Lock(mCS); while (!mShouldTerminate && (mQueue.size() == 0)) @@ -142,7 +142,7 @@ void cAuthenticator::Execute(void) { cRoot::Get()->AuthenticateUser(UserName); } - } + } // for (-ever) } -- cgit v1.2.3