Commit 7ca2660a authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

asio: Stop acceptor on server::http2::stop

parent e278893b
......@@ -175,7 +175,12 @@ void server::start_accept(tcp::acceptor &acceptor, serve_mux &mux) {
});
}
void server::stop() { io_service_pool_.stop(); }
void server::stop() {
io_service_pool_.stop();
for (auto &acceptor : acceptors_) {
acceptor.close();
}
}
void server::join() { io_service_pool_.join(); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment