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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user