mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a race condition if PathRequest::doCreate races with the path being processed.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user