fix(ledger): count publication as progress while running

This commit is contained in:
Nicholas Dudfield
2026-09-18 13:34:36 +07:00
parent afe6dc534d
commit 6df644b050

View File

@@ -2281,7 +2281,11 @@ LedgerMaster::doAdvance(std::unique_lock<std::recursive_mutex>& sl)
}
app_.getOPs().clearNeedNetworkLedger();
progress = newPFWork("pf:newLedger", sl);
// Publishing is progress even without pathfinding clients. Keep
// the shutdown guard so this loop cannot re-enter history work
// after the Application starts stopping.
newPFWork("pf:newLedger", sl);
progress = !app_.isStopping();
}
if (progress)
mAdvanceWork = true;