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/WorldStorage/WorldStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/WorldStorage/WorldStorage.cpp') diff --git a/src/WorldStorage/WorldStorage.cpp b/src/WorldStorage/WorldStorage.cpp index 7be710c29..a3aff0749 100644 --- a/src/WorldStorage/WorldStorage.cpp +++ b/src/WorldStorage/WorldStorage.cpp @@ -94,7 +94,7 @@ void cWorldStorage::WaitForFinish(void) // Wait for the thread to finish: m_ShouldTerminate = true; m_Event.Set(); // Wake up the thread if waiting - super::Wait(); + super::Stop(); LOGD("World storage thread finished"); } -- cgit v1.2.3