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:
parent
8be2528350
commit
393e34d571
@ -152,6 +152,9 @@ void cWorldStorage::WaitForFinish(void)
|
|||||||
m_LoadQueue.clear();
|
m_LoadQueue.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait for the saving to finish:
|
||||||
|
WaitForQueuesEmpty();
|
||||||
|
|
||||||
// Wait for the thread to finish:
|
// Wait for the thread to finish:
|
||||||
m_ShouldTerminate = true;
|
m_ShouldTerminate = true;
|
||||||
m_Event.Set();
|
m_Event.Set();
|
||||||
|
Loading…
Reference in New Issue
Block a user