Improve RPC shutdown (#1550)

This commit is contained in:
cryptocode 2019-01-08 21:37:01 +01:00 committed by GitHub
commit a174a0d7b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ void nano::rpc::accept ()
{
auto connection (std::make_shared<nano::rpc_connection> (node, *this));
acceptor.async_accept (connection->socket, [this, connection](boost::system::error_code const & ec) {
if (acceptor.is_open ())
if (acceptor.is_open () && ec != boost::asio::error::operation_aborted)
{
accept ();
}