Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcui committed Feb 10, 2025
1 parent f9948b7 commit 6706c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/lgraph_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ int LGraphServer::Start() {
if (config_->thread_limit != 0) {
static bool cpprest_threadpool_init = false;
if (!cpprest_threadpool_init) {
LOG_INFO() << "Init cpprest threadpool with thread " << config_->thread_limit;
// avoid to init threadpool twice, some test cases can cause this issue.
crossplat::threadpool::initialize_with_threads(config_->thread_limit);
cpprest_threadpool_init = true;
Expand Down

0 comments on commit 6706c7a

Please sign in to comment.