Signed-off-by: liuziwei <liuziwei12@huawei.com>
This commit is contained in:
liuziwei 2024-09-23 15:53:52 +08:00
parent 82af145b1a
commit 2f00b0da4c
2 changed files with 0 additions and 9 deletions

View File

@ -49,7 +49,6 @@ private:
std::string commandStr_;
std::shared_ptr<IamHitraceHelper> connectAbilityHitrace_ {nullptr};
sptr<IRemoteObject> extRemoteObject_ {nullptr};
bool isConnectionValid_ {true};
};
} // namespace UserAuth
} // namespace UserIam

View File

@ -29,13 +29,6 @@ void UIExtensionAbilityConnection::OnAbilityConnectDone(const AppExecFwk::Elemen
const sptr<IRemoteObject> &remoteObject, int32_t resultCode)
{
IAM_LOGI("on ability connected");
if (!isConnectionValid_) {
IAM_LOGI("connection already release");
connectAbilityHitrace_ = nullptr;
ReleaseUIExtensionComponent();
WidgetClient::Instance().ForceStopAuth();
return;
}
if (remoteObject == nullptr) {
IAM_LOGE("remoteObject is nullptr");
WidgetClient::Instance().ForceStopAuth();
@ -84,7 +77,6 @@ void UIExtensionAbilityConnection::ReleaseUIExtensionComponent()
IAM_LOGI("UIExtensionAbilityConnection::ReleaseUIExtensionComponent result %{public}d", errCode);
extRemoteObject_ = nullptr;
}
isConnectionValid_ = false;
}
} // namespace UserAuth
} // namespace UserIam