Don't start a publish thread if there's nothing to publish.

This commit is contained in:
JoelKatz
2013-01-04 15:23:03 -08:00
parent d57b5a9797
commit d998feb13c

View File

@@ -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));