summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 22:35:59 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-15 22:35:59 +0100
commit5958478c59d7e261098b7ce161686953339d17db (patch)
tree1ba8859bfd5988bc0ecd87e71c5d9dca15dd0d12 /source
parentFixed logging formatting error in cWorld (diff)
downloadcuberite-5958478c59d7e261098b7ce161686953339d17db.tar
cuberite-5958478c59d7e261098b7ce161686953339d17db.tar.gz
cuberite-5958478c59d7e261098b7ce161686953339d17db.tar.bz2
cuberite-5958478c59d7e261098b7ce161686953339d17db.tar.lz
cuberite-5958478c59d7e261098b7ce161686953339d17db.tar.xz
cuberite-5958478c59d7e261098b7ce161686953339d17db.tar.zst
cuberite-5958478c59d7e261098b7ce161686953339d17db.zip
Diffstat (limited to 'source')
-rw-r--r--source/WorldStorage.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/WorldStorage.cpp b/source/WorldStorage.cpp
index 979283895..bdc0e84a9 100644
--- a/source/WorldStorage.cpp
+++ b/source/WorldStorage.cpp
@@ -78,9 +78,11 @@ void cWorldStorage::WaitForFinish(void)
{
LOG("Waiting for the world storage to finish saving");
- // Cancel all loading requests:
- cCSLock Lock(m_CSLoadQueue);
- m_LoadQueue.clear();
+ {
+ // Cancel all loading requests:
+ cCSLock Lock(m_CSLoadQueue);
+ m_LoadQueue.clear();
+ }
// Wait for the thread to finish:
mShouldTerminate = true;