Merge pull request !1108 from 师皓杰/master
This commit is contained in:
openharmony_ci 2024-09-24 07:42:28 +00:00 committed by Gitee
commit bcfbb3ee55
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -63,7 +63,7 @@ void DistributedAbilityManagerService::OnStart()
std::lock_guard<std::mutex> tokenLock(tokenMutex_);
std::string tokenStr = system::GetParameter(TOKEN_KEY, DEFAULT_TOKEN_VALUE);
if (!tokenStr.empty()) {
token_.store(std::stoi(tokenStr));
token_.store(std::atoi(tokenStr.c_str()));
}
}
notifierDeathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new NotifierDeathRecipient());