Tiny bugfix.

This commit is contained in:
JoelKatz
2013-03-29 08:33:35 -07:00
parent 85afb49058
commit 567b17efe6

View File

@@ -881,8 +881,6 @@ void LedgerAcquireMaster::gotLedgerData(Job&, uint256 hash,
{
ripple::TMLedgerData& packet = *packet_ptr;
Peer::pointer peer = wPeer.lock();
if (!peer)
return;
cLog(lsTRACE) << "Got data (" << packet.nodes().size() << ") for acquiring ledger: " << hash;
@@ -895,6 +893,9 @@ void LedgerAcquireMaster::gotLedgerData(Job&, uint256 hash,
}
ledger->noAwaitData();
if (!peer)
return;
if (packet.type() == ripple::liBASE)
{
if (packet.nodes_size() < 1)