From 972260b76c2af4551bd15620fc863851bb0b5262 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Mon, 28 Nov 2016 07:55:50 +0100 Subject: [PATCH] Don't throw exception for socket failure as we already bring down the connection --- src/anbox/network/socket_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anbox/network/socket_connection.cpp b/src/anbox/network/socket_connection.cpp index e7b50f7..e36f56b 100644 --- a/src/anbox/network/socket_connection.cpp +++ b/src/anbox/network/socket_connection.cpp @@ -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 data(bytes_read);