diff options
Diffstat (limited to '')
-rw-r--r-- | source/ChunkSender.cpp | 14 |
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
|