summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-13 22:13:34 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-13 22:13:34 +0100
commit393e34d571e330c3e6a69dde3d9d13a7fef140db (patch)
tree171a406f5ef6b98e7aad54b7eb6ee45712debf51
parentRemoved an unwarranted assert in cChunkSender (diff)
downloadcuberite-393e34d571e330c3e6a69dde3d9d13a7fef140db.tar
cuberite-393e34d571e330c3e6a69dde3d9d13a7fef140db.tar.gz
cuberite-393e34d571e330c3e6a69dde3d9d13a7fef140db.tar.bz2
cuberite-393e34d571e330c3e6a69dde3d9d13a7fef140db.tar.lz
cuberite-393e34d571e330c3e6a69dde3d9d13a7fef140db.tar.xz
cuberite-393e34d571e330c3e6a69dde3d9d13a7fef140db.tar.zst
cuberite-393e34d571e330c3e6a69dde3d9d13a7fef140db.zip
-rw-r--r--source/WorldStorage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/WorldStorage.cpp b/source/WorldStorage.cpp
index acd681e7f..4a4b68134 100644
--- a/source/WorldStorage.cpp
+++ b/source/WorldStorage.cpp
@@ -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();