Skip to content

Commit

Permalink
poll event when stop (qicosmos#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Jul 13, 2023
1 parent d4dbaf4 commit e9badb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/cinatra/ylt/coro_io/io_context_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ class io_context_pool {
work_.clear();

if (ok) {
// clear all unfinished work
for (auto &e : io_contexts_) {
e->run();
}
return;
}

Expand Down

0 comments on commit e9badb0

Please sign in to comment.