diff options
Diffstat (limited to 'host/lib/deps/rpclib')
-rw-r--r-- | host/lib/deps/rpclib/lib/rpc/detail/server_session.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/deps/rpclib/lib/rpc/detail/server_session.cc b/host/lib/deps/rpclib/lib/rpc/detail/server_session.cc index 3f1ed48c9..7de8bd213 100644 --- a/host/lib/deps/rpclib/lib/rpc/detail/server_session.cc +++ b/host/lib/deps/rpclib/lib/rpc/detail/server_session.cc @@ -33,7 +33,13 @@ void server_session::start() { do_read(); } void server_session::close() { LOG_INFO("Closing session."); exit_ = true; - write_strand_.post([this]() { socket_.close(); }); + write_strand_.post([this]() { + try { + socket_.close(); + } catch (const boost::system::system_error&) { + LOG_WARN("Error during closing socket."); + } + }); } void server_session::do_read() { |