From 364f1daff8b7c7b5983f6eaf2832bea7cbbb4961 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 11 Dec 2014 09:44:58 +0100 Subject: [PATCH] Fix another crash in ThreadPool::Stop refs #8059 --- lib/base/threadpool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base/threadpool.cpp b/lib/base/threadpool.cpp index b39ad0d06..941551c23 100644 --- a/lib/base/threadpool.cpp +++ b/lib/base/threadpool.cpp @@ -70,6 +70,8 @@ void ThreadPool::Stop(void) } m_ThreadGroup.join_all(); + m_ThreadGroup.~thread_group(); + new (&m_ThreadGroup) boost::thread_group(); for (size_t i = 0; i < sizeof(m_Queues) / sizeof(m_Queues[0]); i++) m_Queues[i].Stopped = false; -- 2.40.0