Fix crash in ThreadPool::Stop

fixes #8059
This commit is contained in:
Gunnar Beutner 2014-12-11 09:33:07 +01:00
parent bd7b2f30ef
commit 874970db9e
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ void ThreadPool::Stop(void)
m_MgmtCV.notify_all();
}
m_MgmtThread.join();
if (m_MgmtThread.joinable())
m_MgmtThread.join();
for (size_t i = 0; i < sizeof(m_Queues) / sizeof(m_Queues[0]); i++) {
boost::mutex::scoped_lock lock(m_Queues[i].Mutex);