mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a broken scoped unlock.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user