mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Avoid an extraneous test.
This commit is contained in:
@@ -1652,8 +1652,7 @@ void NetworkOPsImp::setMode (OperatingMode om)
|
|||||||
if (getApp().getLedgerMaster ().getValidatedLedgerAge () < 60)
|
if (getApp().getLedgerMaster ().getValidatedLedgerAge () < 60)
|
||||||
om = omSYNCING;
|
om = omSYNCING;
|
||||||
}
|
}
|
||||||
|
else if (om == omSYNCING)
|
||||||
if (om == omSYNCING)
|
|
||||||
{
|
{
|
||||||
if (getApp().getLedgerMaster ().getValidatedLedgerAge () >= 60)
|
if (getApp().getLedgerMaster ().getValidatedLedgerAge () >= 60)
|
||||||
om = omCONNECTED;
|
om = omCONNECTED;
|
||||||
|
|||||||
Reference in New Issue
Block a user