Signed-off-by: liuziwei <liuziwei12@huawei.com>
This commit is contained in:
liuziwei 2024-09-23 16:29:03 +08:00
parent 3a03efcac4
commit 7cf80b1ce6
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