Skip to content

Commit

Permalink
解决io_service_inplace的stop函数不能正常工作的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tearshark committed Feb 23, 2018
1 parent fb15203 commit be21d33
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions io_service_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace cinatra
io_services_->run();
}

intptr_t run_one(){
intptr_t run_one() {
return io_services_->run_one();
}

Expand All @@ -98,12 +98,7 @@ namespace cinatra
work_ = nullptr;

if (io_services_)
{
io_services_->run();
io_services_->stop();

io_services_ = nullptr;
}
}

boost::asio::io_service& get_io_service() {
Expand Down

0 comments on commit be21d33

Please sign in to comment.