am 6e2cc1a3: Avoid multiple deletions of a usage entry
* commit '6e2cc1a3ed53d2fed2ad87edbcda4fac37313fb0': Avoid multiple deletions of a usage entry
This commit is contained in:
@@ -507,12 +507,6 @@ bool CdmSession::DeleteLicense() {
|
|||||||
if (!is_offline_ && license_parser_->provider_session_token().empty())
|
if (!is_offline_ && license_parser_->provider_session_token().empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!license_parser_->provider_session_token().empty()) {
|
|
||||||
if (crypto_session_->DeleteUsageInformation(
|
|
||||||
license_parser_->provider_session_token()) != NO_ERROR) {
|
|
||||||
LOGE("CdmSession::DeleteLicense: error deleting usage info");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!file_handle_->Reset(security_level_)) {
|
if (!file_handle_->Reset(security_level_)) {
|
||||||
LOGE("CdmSession::DeleteLicense: Unable to initialize device files");
|
LOGE("CdmSession::DeleteLicense: Unable to initialize device files");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user