Infinite loop in acceptor handler.

This commit is contained in:
clemahieu 2017-01-31 11:40:43 -06:00 committed by Tatsuhiro Tsujikawa
parent 7dddac081e
commit 6d3e010ae7
1 changed files with 2 additions and 1 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();
}
if (acceptor.is_open ())
start_accept(acceptor, mux);
start_accept(acceptor, mux);
});
}