mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tiny bugfix.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user