Commit 5059790e authored by Robert Butora's avatar Robert Butora
Browse files

Catch exception on remote_endpoint and so dispatch handleAccept again.

parent 234f8548
......@@ -188,7 +188,18 @@ void Server::handleAccept(Session::SP session_sp,
if(!ec)
{
session_sp->start();
try
{
session_sp->start();
}
catch(std::exception& ex)
{
ERROR_STREAM << "Server::handleAccept() " << ex.what() << endl;
}
catch(...)
{
ERROR_STREAM << "Server::handleAccept() unknown error... " << endl;
}
}
else
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment