Skip to content

Commit

Permalink
free pool when destructing
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 11, 2023
1 parent fa92e01 commit e9aaed4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/ylt/coro_io/io_context_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ class io_context_pool {
return;
}

// ~io_context_pool() {
// if (!has_stop())
// stop();
// }
~io_context_pool() {
if (!has_stop())
stop();
}

std::size_t pool_size() const noexcept { return io_contexts_.size(); }

Expand Down

0 comments on commit e9aaed4

Please sign in to comment.