From 78961336107737a2bbd3a7f23c77c5b5656d48a3 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Mon, 3 Jul 2017 10:56:34 -0500 Subject: [PATCH] Checking for shutdown while processing frontiers. --- rai/node/bootstrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rai/node/bootstrap.cpp b/rai/node/bootstrap.cpp index 62da3855..1d26188e 100755 --- a/rai/node/bootstrap.cpp +++ b/rai/node/bootstrap.cpp @@ -324,7 +324,7 @@ void rai::frontier_req_client::unsynced (MDB_txn * transaction_a, rai::block_has void rai::frontier_req_client::received_frontier (boost::system::error_code const & ec, size_t size_a) { - if (!ec) + if (!ec && connection->attempt->state != rai::attempt_state::complete) { assert (size_a == sizeof (rai::uint256_union) + sizeof (rai::uint256_union)); rai::account account;