Skip to content

Commit

Permalink
fix idle_timeout_check
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Jul 13, 2023
1 parent db54bfe commit 62f0268
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/ylt/coro_io/client_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class client_pool : public std::enable_shared_from_this<
static async_simple::coro::Lazy<void> collect_idle_timeout_client(
std::weak_ptr<client_pool> self_weak) {
std::shared_ptr<client_pool> self = self_weak.lock();
if (self == nullptr) {
co_return;
}
while (true) {
auto sleep_time = self->pool_config_.idle_timeout;
auto clear_cnt = self->pool_config_.idle_queue_max_clear_count;
Expand Down

0 comments on commit 62f0268

Please sign in to comment.