mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-23 07:39:51 +00:00
fix
Signed-off-by: liuziwei <liuziwei12@huawei.com>
This commit is contained in:
parent
82af145b1a
commit
2f00b0da4c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user