Improve RPC shutdown (#1550)
This commit is contained in:
parent
4bd4d185d7
commit
a174a0d7b6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue