From 7b431bed513db3318811698029304d81e5831ab3 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sun, 22 Jul 2018 22:35:58 +0100 Subject: cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258) This allows threads to be restarted after stopping. Fixes #4257 --- src/Generating/ChunkGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Generating') diff --git a/src/Generating/ChunkGenerator.cpp b/src/Generating/ChunkGenerator.cpp index e0fee5bd0..3ac128c46 100644 --- a/src/Generating/ChunkGenerator.cpp +++ b/src/Generating/ChunkGenerator.cpp @@ -98,7 +98,7 @@ void cChunkGenerator::Stop(void) m_ShouldTerminate = true; m_Event.Set(); m_evtRemoved.Set(); // Wake up anybody waiting for empty queue - Wait(); + super::Stop(); delete m_Generator; m_Generator = nullptr; -- cgit v1.2.3