diff --git a/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp b/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp index 2a106a584d46da4d46ceb36e38fc1231f9b57c40..bf38acc6e90ca556de1f9539df92482f1d26d05b 100644 --- a/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp +++ b/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp @@ -70,6 +70,10 @@ void OnSendFinishedCallback(TriggerReceiveDataWorker *dataWorker) TAG_LOGE(AAFwkTag::WANTAGENT, "null dataWorker"); return; } + if (dataWorker->resultData == "canceled") { + TAG_LOGI(AAFwkTag::WANTAGENT, "canceled"); + return; + } ani_vm *etsVm = dataWorker->vm; if (etsVm == nullptr) { TAG_LOGE(AAFwkTag::WANTAGENT, "null etsVm");