Browse Source

Fix thread pool closing

Tomasz Zieliński 2 years ago
parent
commit
3d25c2c6dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/rmg/threadpool/ThreadPool.h

+ 1 - 1
lib/rmg/threadpool/ThreadPool.h

@@ -128,7 +128,7 @@ inline void ThreadPool::terminate()
 {
 {
 	{
 	{
 		Lock lock(mx);
 		Lock lock(mx);
-		if (running())
+		if (isRunning())
 		{
 		{
 			stopping = true;
 			stopping = true;
 		}
 		}