summaryrefslogtreecommitdiff
path: root/dev-cpp/lucene++/files/lucene++-3.0.9-threadpool-shutdown.patch
blob: c0f1ddb4e77ab0d9b6388a44d3de3f4d5a0c9235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
https://github.com/luceneplusplus/LucenePlusPlus/pull/227

diff --git a/src/core/util/ThreadPool.cpp b/src/core/util/ThreadPool.cpp
index ee6640b..38f4170 100644
--- a/src/core/util/ThreadPool.cpp
+++ b/src/core/util/ThreadPool.cpp
@@ -30,6 +30,7 @@ ThreadPool::ThreadPool()
 }
 
 ThreadPool::~ThreadPool() {
+    io_context.stop();
     threadGroup.join_all(); // wait for all competition
 }