Merge branch 'clemahieu-acceptor_infinite_loop'

This commit is contained in:
Tatsuhiro Tsujikawa 2017-02-04 11:35:43 +09:00
commit aad3e275d1
1 changed files with 3 additions and 2 deletions

View File

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