Skip to content

Commit

Permalink
Refactor thread creation loop in base_server.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardodebenedictis committed Feb 20, 2024
1 parent e9e8aee commit afc10a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace network

do_accept();

for (std::size_t i = 0; i < threads.capacity(); ++i)
for (auto i = threads.capacity(); i > 0; --i)
threads.emplace_back([this]
{ io_ctx.run(); });

Expand Down

0 comments on commit afc10a1

Please sign in to comment.