Synchronously save chunks on server shutdown (#4900)
+ Synchronously save chunks on server shutdown. Fixes #4884
This commit is contained in:
committed by
GitHub
parent
b6b7fb1a65
commit
8de71fc9d6
@@ -648,7 +648,8 @@ void cServer::Shutdown(void)
|
||||
// Notify the tick thread and wait for it to terminate:
|
||||
m_TickThread.Stop();
|
||||
|
||||
cRoot::Get()->SaveAllChunks();
|
||||
// Save all chunks in all worlds, wait for chunks to be sent to the ChunkStorage queue for each world:
|
||||
cRoot::Get()->SaveAllChunksNow();
|
||||
|
||||
// Remove all clients:
|
||||
cCSLock Lock(m_CSClients);
|
||||
|
||||
Reference in New Issue
Block a user