Checking for shutdown while processing frontiers.

This commit is contained in:
clemahieu 2017-07-03 10:56:34 -05:00
commit 7896133610

View file

@ -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;