From b192146ae4e003fb7e07a516e92e6e3fd3dcb232 Mon Sep 17 00:00:00 2001 From: abonadon_hk Date: Mon, 4 Nov 2024 19:27:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E5=8A=A0=E9=94=81=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: abonadon_hk Change-Id: If482ba76b1188fb63ab80b44ec3b97f664b6bf77 --- services/context/src/widget_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/context/src/widget_context.cpp b/services/context/src/widget_context.cpp index e40ad2f6e..662137f6f 100644 --- a/services/context/src/widget_context.cpp +++ b/services/context/src/widget_context.cpp @@ -491,7 +491,6 @@ bool WidgetContext::DisconnectExtension() void WidgetContext::End(const ResultCode &resultCode) { IAM_LOGI("in End, resultCode: %{public}d", static_cast(resultCode)); - WidgetClient::Instance().Reset(); StopAllRunTask(resultCode); IF_FALSE_LOGE_AND_RETURN(callerCallback_ != nullptr); Attributes attr; @@ -530,6 +529,7 @@ void WidgetContext::End(const ResultCode &resultCode) void WidgetContext::StopAllRunTask(const ResultCode &resultCode) { std::lock_guard lock(mutex_); + WidgetClient::Instance().Reset(); for (auto &taskInfo : runTaskInfoList_) { IAM_LOGI("stop task"); if (taskInfo.task == nullptr) {