asio: Add curly brackets to avoid possible well known issue

This commit is contained in:
Tatsuhiro Tsujikawa 2017-02-04 11:33:21 +09:00
parent 6d3e010ae7
commit 1649948e78
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@ void server::start_accept(tcp::acceptor &acceptor, serve_mux &mux) {
new_connection->start_read_deadline();
new_connection->start();
}
if (acceptor.is_open ())
if (acceptor.is_open()) {
start_accept(acceptor, mux);
}
});
}