Treat errors from accept as non-fatal.
This commit is contained in:
parent
640b17ba7f
commit
6cf1701ac1
@ -97,11 +97,12 @@ public:
|
||||
if (!error)
|
||||
{
|
||||
new_session->start();
|
||||
new_session.reset(new session(io_service_));
|
||||
acceptor_.async_accept(new_session->socket(),
|
||||
boost::bind(&server::handle_accept, this, new_session,
|
||||
asio::placeholders::error));
|
||||
}
|
||||
|
||||
new_session.reset(new session(io_service_));
|
||||
acceptor_.async_accept(new_session->socket(),
|
||||
boost::bind(&server::handle_accept, this, new_session,
|
||||
asio::placeholders::error));
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user