Fix the other half of the acquire timeout bug.

This commit is contained in:
JoelKatz
2012-08-02 11:36:48 -07:00
parent befd7aa108
commit 67ee822948

View File

@@ -123,7 +123,8 @@ void LedgerAcquire::done()
mOnComplete.empty();
mLock.unlock();
theApp->getMasterLedger().storeLedger(mLedger);
if (mLedger)
theApp->getMasterLedger().storeLedger(mLedger);
for (int i = 0; i < triggers.size(); ++i)
triggers[i](shared_from_this());