Fix a bug that causes a crash on getCurrentSnapshot.

This commit is contained in:
JoelKatz
2013-06-21 19:37:55 -07:00
parent 34a616dbdb
commit ff1b7e70f7

View File

@@ -67,8 +67,6 @@ RPCHandler::RPCHandler (NetworkOPs* netOps, InfoSub::pointer infoSub) : mNetOps
Json::Value RPCHandler::transactionSign (Json::Value jvRequest, bool bSubmit, ScopedLock& mlh)
{
mlh.unlock ();
Json::Value jvResult;
RippleAddress naSeed;
RippleAddress raSrcAddressID;
@@ -111,6 +109,7 @@ Json::Value RPCHandler::transactionSign (Json::Value jvRequest, bool bSubmit, Sc
AccountState::pointer asSrc = bOffline
? AccountState::pointer () // Don't look up address if offline.
: mNetOps->getAccountState (mNetOps->getCurrentSnapshot (), raSrcAddressID);
mlh.unlock();
if (!bOffline && !asSrc)
{