diff --git a/parser/common/thread_pool.cc b/parser/common/thread_pool.cc index 7c90109..e0c1ce5 100644 --- a/parser/common/thread_pool.cc +++ b/parser/common/thread_pool.cc @@ -64,6 +64,7 @@ void ThreadPool::ThreadFunc(ThreadPool *const thread_pool) { if (thread_pool->is_stoped_ && thread_pool->tasks_.empty()) { return; } + task = std::move(thread_pool->tasks_.front()); thread_pool->tasks_.pop(); }