From fe34791bdcd49c61ed418952bdffdfe5e7f0fb36 Mon Sep 17 00:00:00 2001 From: XieHan Date: Mon, 25 Jan 2021 16:38:30 +0800 Subject: [PATCH] check route_result --- src/factory/WFTaskFactory.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factory/WFTaskFactory.inl b/src/factory/WFTaskFactory.inl index 734dbbc0..466c2f19 100644 --- a/src/factory/WFTaskFactory.inl +++ b/src/factory/WFTaskFactory.inl @@ -475,7 +475,7 @@ SubTask *WFComplexClientTask::done() bool is_user_request = this->finish_once(); - if (ns_policy_) + if (ns_policy_ && route_result_.request_object) { if (this->state == WFT_STATE_SYS_ERROR) ns_policy_->failed(&route_result_, cookie_, this->target);