update sinkhandler/src/distributed_input_sink_handler.cpp.

Signed-off-by: ry521 <renyi50@huawei.com>
This commit is contained in:
ry521
2023-10-08 02:17:28 +00:00
committed by Gitee
parent b77a58d9c1
commit cfd32a1075
@@ -128,13 +128,17 @@ void DistributedInputSinkHandler::OnRemoteSinkSvrDied(const wptr<IRemoteObject>
DHLOGE("dInputSinkProxy_ is nullptr.");
return;
}
if (dInputSinkProxy_->AsObject() == nullptr) {
DHLOGE("AsObject is nullptr.");
return;
}
sptr<IRemoteObject> remoteObject = remote.promote();
if (remoteObject == nullptr) {
DHLOGE("OnRemoteDied remote promoted failed");
return;
}
if (dInputSinkProxy_ ->AsObject() != remoteObject) {
if (dInputSinkProxy_->AsObject() != remoteObject) {
DHLOGE("OnRemoteSinkSvrDied not found remote object.");
return;
}