Browse Source

Fix thread pool closing

Tomasz Zieliński 2 năm trước cách đây
mục cha
commit
3d25c2c6dc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
-		if (running())
+		if (isRunning())
 		{
 			stopping = true;
 		}