退出SA时置ready_为false Signed-off-by:baozewei@huawei.com

Signed-off-by: baozewei <baozewei@huawei.com>
This commit is contained in:
baozewei 2024-11-15 15:44:58 +08:00
parent 99346ade9f
commit 7fe9a880e4

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;
}
}