asio: Add curly brackets to avoid possible well known issue
This commit is contained in:
parent
6d3e010ae7
commit
1649948e78
|
@ -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);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue