diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index c100ecc3f..c1fcd3c23 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -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;