summaryrefslogtreecommitdiff
path: root/src/support/threads.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/threads.cpp')
-rw-r--r--src/support/threads.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/support/threads.cpp b/src/support/threads.cpp
index ce880ac2d..c4bb6e513 100644
--- a/src/support/threads.cpp
+++ b/src/support/threads.cpp
@@ -47,7 +47,6 @@ Thread::Thread(ThreadPool* parent) : parent(parent) {
}
Thread::~Thread() {
- assert(!parent->isRunning());
{
std::lock_guard<std::mutex> lock(mutex);
// notify the thread that it can exit
@@ -194,7 +193,7 @@ size_t ThreadPool::size() {
bool ThreadPool::isRunning() {
DEBUG_POOL("check if running\n");
- return pool && pool->running;
+ return running;
}
void ThreadPool::notifyThreadIsReady() {