Fix a race condition if PathRequest::doCreate races with the path being processed.

This commit is contained in:
JoelKatz
2013-11-07 22:30:11 -08:00
parent 49f43ccc0a
commit 4620b667e7

View File

@@ -124,6 +124,8 @@ Json::Value PathRequest::doCreate (Ledger::ref lrLedger, const Json::Value& valu
}
else
mValid = false;
status = jvStatus;
}
if (mValid)
@@ -136,7 +138,7 @@ Json::Value PathRequest::doCreate (Ledger::ref lrLedger, const Json::Value& valu
sRequests.insert (shared_from_this ());
}
return jvStatus;
return status;
}
int PathRequest::parseJson (const Json::Value& jvParams, bool complete)