Commit 1649948e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

asio: Add curly brackets to avoid possible well known issue

parent 6d3e010a
...@@ -170,9 +170,9 @@ void server::start_accept(tcp::acceptor &acceptor, serve_mux &mux) { ...@@ -170,9 +170,9 @@ void server::start_accept(tcp::acceptor &acceptor, serve_mux &mux) {
new_connection->start_read_deadline(); new_connection->start_read_deadline();
new_connection->start(); new_connection->start();
} }
if (acceptor.is_open ()) if (acceptor.is_open()) {
start_accept(acceptor, mux); start_accept(acceptor, mux);
}
}); });
} }
......
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