tsan: fix rpc shutdown acceptor issue (#1681)
This commit is contained in:
parent
7455552f23
commit
a275d73d34
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,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 () && ec != boost::asio::error::operation_aborted)
|
||||
if (ec != boost::asio::error::operation_aborted && acceptor.is_open ())
|
||||
{
|
||||
accept ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue