summaryrefslogtreecommitdiffstats
path: root/source/ChunkSender.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-11 23:29:15 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-11 23:29:15 +0100
commitcb2de47247cfddce2c6e852d5cb33df911b2e1e6 (patch)
tree7c82720425822e79937a4eadd63858815cc22780 /source/ChunkSender.cpp
parentFixed a small bug in chunk version check D: (diff)
downloadcuberite-cb2de47247cfddce2c6e852d5cb33df911b2e1e6.tar
cuberite-cb2de47247cfddce2c6e852d5cb33df911b2e1e6.tar.gz
cuberite-cb2de47247cfddce2c6e852d5cb33df911b2e1e6.tar.bz2
cuberite-cb2de47247cfddce2c6e852d5cb33df911b2e1e6.tar.lz
cuberite-cb2de47247cfddce2c6e852d5cb33df911b2e1e6.tar.xz
cuberite-cb2de47247cfddce2c6e852d5cb33df911b2e1e6.tar.zst
cuberite-cb2de47247cfddce2c6e852d5cb33df911b2e1e6.zip
Diffstat (limited to '')
-rw-r--r--source/ChunkSender.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/ChunkSender.cpp b/source/ChunkSender.cpp
index cb4340f25..f73246c98 100644
--- a/source/ChunkSender.cpp
+++ b/source/ChunkSender.cpp
@@ -30,8 +30,7 @@ cChunkSender::cChunkSender(void) :
cChunkSender::~cChunkSender()
{
- m_ShouldTerminate = true;
- m_evtQueue.Set();
+ Stop();
}
@@ -48,6 +47,17 @@ bool cChunkSender::Start(cWorld * a_World)
+void cChunkSender::Stop(void)
+{
+ m_ShouldTerminate = true;
+ m_evtQueue.Set();
+ Wait();
+}
+
+
+
+
+
void cChunkSender::ChunkReady(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
{
// This is probably never gonna be called twice for the same chunk, and if it is, we don't mind, so we don't check