!505 退出SA时置ready_为false

Merge pull request !505 from 包泽伟/master
This commit is contained in:
openharmony_ci 2024-11-15 08:48:06 +00:00 committed by Gitee
commit 8a6d2d8b40
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -94,6 +94,8 @@ void PrintManagerClient::OnRemoteSaDied(const wptr<IRemoteObject> &remote)
serviceRemote->RemoveDeathRecipient(deathRecipient_);
printServiceProxy_ = nullptr;
deathRecipient_ = nullptr;
std::unique_lock<std::mutex> lock(conditionMutex_);
ready_ = false;
}
}