1
0

Fixed the server not waiting for the world to save completely before stopping

git-svn-id: http://mc-server.googlecode.com/svn/trunk@410 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-03-13 21:13:34 +00:00
parent 8be2528350
commit 393e34d571

View File

@ -152,6 +152,9 @@ void cWorldStorage::WaitForFinish(void)
m_LoadQueue.clear();
}
// Wait for the saving to finish:
WaitForQueuesEmpty();
// Wait for the thread to finish:
m_ShouldTerminate = true;
m_Event.Set();