Don't throw exception for socket failure as we already bring down the connection

This commit is contained in:
Simon Fels 2016-11-28 07:55:50 +01:00
commit 972260b76c

View file

@ -72,7 +72,7 @@ void SocketConnection::on_read_size(const boost::system::error_code& error, std:
if (connections_)
connections_->remove(id());
BOOST_THROW_EXCEPTION(std::runtime_error(error.message()));
return;
}
std::vector<std::uint8_t> data(bytes_read);