From 489458364e432d2b5dd7f4e501e665bb6d148beb Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 11 Mar 2013 07:22:42 -0700 Subject: [PATCH] Fix a broken scoped unlock. --- src/cpp/ripple/RPCHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;