2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-26 18:22:09 +00:00

Treat errors from accept as non-fatal. Refs #7488

[SVN r82260]
This commit is contained in:
Christopher Kohlhoff
2012-12-29 13:14:37 +00:00
parent 489f421f8e
commit bd5f93f3df

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,
boost::asio::placeholders::error));
}
new_session.reset(new session(io_service_));
acceptor_.async_accept(new_session->socket(),
boost::bind(&server::handle_accept, this, new_session,
boost::asio::placeholders::error));
}
private: