mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-19 17:43:35 -04:00
update sinkhandler/src/distributed_input_sink_handler.cpp.
Signed-off-by: ry521 <renyi50@huawei.com>
This commit is contained in:
@@ -65,15 +65,15 @@ int32_t DistributedInputSinkHandler::InitSink(const std::string ¶ms)
|
||||
void DistributedInputSinkHandler::FinishStartSA(const std::string ¶ms, const sptr<IRemoteObject> &remoteObject)
|
||||
{
|
||||
DHLOGI("DInputSinkHandler FinishStartSA");
|
||||
std::unique_lock<std::mutex> lock(proxyMutex_);
|
||||
std::lock_guard<std::mutex> lock(proxyMutex_);
|
||||
if (sinkSvrRecipient_ == nullptr) {
|
||||
DHLOGE("sinkSvrRecipient is nullptr.");
|
||||
return;
|
||||
}
|
||||
remoteObject -> AddDeathRecipient(sinkSvrRecipient_);
|
||||
remoteObject->AddDeathRecipient(sinkSvrRecipient_);
|
||||
dInputSinkProxy_ = iface_cast<IDistributedSinkInput>(remoteObject);
|
||||
DInputSAManager::GetInstance().SetDInputSinkProxy(remoteObject);
|
||||
if ((dInputSinkProxy_ == nullptr) || (dInputSinkProxy_ ->AsObject() == nullptr)) {
|
||||
if ((dInputSinkProxy_ == nullptr) || (dInputSinkProxy_->AsObject() == nullptr)) {
|
||||
DHLOGE("Faild to get input sink proxy.");
|
||||
return;
|
||||
}
|
||||
@@ -113,7 +113,7 @@ void DistributedInputSinkHandler::SALoadSinkCb::OnLoadSystemAbilityFail(int32_t
|
||||
void DistributedInputSinkHandler::DInputSinkSvrRecipient::OnRemoteDied(const wptr<IRemoteObject> &remote)
|
||||
{
|
||||
if (remote == nullptr) {
|
||||
DHLOGI("OnRemoteDied remote is nullptr.");
|
||||
DHLOGE("OnRemoteDied remote is nullptr.");
|
||||
return;
|
||||
}
|
||||
DHLOGI("DInputSinkSvrRecipient OnRemoteDied.");
|
||||
|
||||
Reference in New Issue
Block a user