Fix a broken scoped unlock.

This commit is contained in:
JoelKatz
2013-03-11 07:22:42 -07:00
parent f4e22a8968
commit 489458364e

View File

@@ -1647,7 +1647,7 @@ Json::Value RPCHandler::doLedger(Json::Value jvRequest, int& cost)
Json::Value ret(Json::objectValue);
ScopedUnlock(theApp->getMasterLock());
ScopedUnlock(theApp->getMasterLock(), lpLedger->isClosed());
lpLedger->addJson(ret, iOptions);
return ret;