Merge "Take a Global Write Lock Before Calling OEMCrypto_GenerateNonce()"
This commit is contained in:
@@ -1489,7 +1489,7 @@ CdmResponseType CryptoSession::GenerateNonce(uint32_t* nonce) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
OEMCryptoResult result;
|
OEMCryptoResult result;
|
||||||
WithOecSessionLock("GenerateNonce", [&] {
|
WithOecWriteLock("GenerateNonce", [&] {
|
||||||
result = OEMCrypto_GenerateNonce(oec_session_id_, nonce);
|
result = OEMCrypto_GenerateNonce(oec_session_id_, nonce);
|
||||||
});
|
});
|
||||||
metrics_->oemcrypto_generate_nonce_.Increment(result);
|
metrics_->oemcrypto_generate_nonce_.Increment(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user