mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 12:35:50 +00:00
Fix a case where we timeout for no reason.
This commit is contained in:
@@ -153,6 +153,18 @@ void InboundLedger::onTimer (bool progress)
|
|||||||
|
|
||||||
if (!progress)
|
if (!progress)
|
||||||
{
|
{
|
||||||
|
if (isDone())
|
||||||
|
{
|
||||||
|
WriteLog (lsINFO, InboundLedger) << "Already done " << mHash;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
checkLocal();
|
||||||
|
if (isDone())
|
||||||
|
{
|
||||||
|
WriteLog (lsINFO, InboundLedger) << "Completed fetch " << mHash;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mAggressive = true;
|
mAggressive = true;
|
||||||
mByHash = true;
|
mByHash = true;
|
||||||
int pc = getPeerCount ();
|
int pc = getPeerCount ();
|
||||||
|
|||||||
Reference in New Issue
Block a user