Treat errors from accept as non-fatal.

This commit is contained in:
Christopher Kohlhoff 2012-12-29 19:38:28 +11:00
parent 640b17ba7f
commit 6cf1701ac1

View File

@ -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: