aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server/thread_pool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpp/server/thread_pool.cc')
-rw-r--r--src/cpp/server/thread_pool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpp/server/thread_pool.cc b/src/cpp/server/thread_pool.cc
index d3013b806c..2c0f4da812 100644
--- a/src/cpp/server/thread_pool.cc
+++ b/src/cpp/server/thread_pool.cc
@@ -66,8 +66,8 @@ ThreadPool::~ThreadPool() {
shutdown_ = true;
cv_.notify_all();
}
- for (auto& t : threads_) {
- t.join();
+ for (auto t = threads_.begin(); t != threads_.end(); t++) {
+ t->join();
}
}