mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 17:06:00 +00:00
Don't start a publish thread if there's nothing to publish.
This commit is contained in:
@@ -406,7 +406,7 @@ void LedgerMaster::checkPublish(const uint256& hash, uint32 seq)
|
||||
}
|
||||
}
|
||||
|
||||
if (!mPubThread)
|
||||
if (!mPubLedgers.empty() && !mPubThread)
|
||||
{
|
||||
mPubThread = true;
|
||||
theApp->getJobQueue().addJob(jtPUBLEDGER, boost::bind(&LedgerMaster::pubThread, this));
|
||||
|
||||
Reference in New Issue
Block a user