mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-27 01:40:49 +00:00
fix
Signed-off-by: liuziwei <liuziwei12@huawei.com>
This commit is contained in:
parent
3a03efcac4
commit
7cf80b1ce6
@ -49,7 +49,6 @@ private:
|
|||||||
std::string commandStr_;
|
std::string commandStr_;
|
||||||
std::shared_ptr<IamHitraceHelper> connectAbilityHitrace_ {nullptr};
|
std::shared_ptr<IamHitraceHelper> connectAbilityHitrace_ {nullptr};
|
||||||
sptr<IRemoteObject> extRemoteObject_ {nullptr};
|
sptr<IRemoteObject> extRemoteObject_ {nullptr};
|
||||||
bool isConnectionValid_ {true};
|
|
||||||
};
|
};
|
||||||
} // namespace UserAuth
|
} // namespace UserAuth
|
||||||
} // namespace UserIam
|
} // namespace UserIam
|
||||||
|
@ -29,13 +29,6 @@ void UIExtensionAbilityConnection::OnAbilityConnectDone(const AppExecFwk::Elemen
|
|||||||
const sptr<IRemoteObject> &remoteObject, int32_t resultCode)
|
const sptr<IRemoteObject> &remoteObject, int32_t resultCode)
|
||||||
{
|
{
|
||||||
IAM_LOGI("on ability connected");
|
IAM_LOGI("on ability connected");
|
||||||
if (!isConnectionValid_) {
|
|
||||||
IAM_LOGI("connection already release");
|
|
||||||
connectAbilityHitrace_ = nullptr;
|
|
||||||
ReleaseUIExtensionComponent();
|
|
||||||
WidgetClient::Instance().ForceStopAuth();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (remoteObject == nullptr) {
|
if (remoteObject == nullptr) {
|
||||||
IAM_LOGE("remoteObject is nullptr");
|
IAM_LOGE("remoteObject is nullptr");
|
||||||
WidgetClient::Instance().ForceStopAuth();
|
WidgetClient::Instance().ForceStopAuth();
|
||||||
@ -84,7 +77,6 @@ void UIExtensionAbilityConnection::ReleaseUIExtensionComponent()
|
|||||||
IAM_LOGI("UIExtensionAbilityConnection::ReleaseUIExtensionComponent result %{public}d", errCode);
|
IAM_LOGI("UIExtensionAbilityConnection::ReleaseUIExtensionComponent result %{public}d", errCode);
|
||||||
extRemoteObject_ = nullptr;
|
extRemoteObject_ = nullptr;
|
||||||
}
|
}
|
||||||
isConnectionValid_ = false;
|
|
||||||
}
|
}
|
||||||
} // namespace UserAuth
|
} // namespace UserAuth
|
||||||
} // namespace UserIam
|
} // namespace UserIam
|
||||||
|
Loading…
Reference in New Issue
Block a user