mirror of
https://github.com/sogou/workflow.git
synced 2026-10-27 02:23:27 +08:00
make it safe
This commit is contained in:
@@ -692,7 +692,12 @@ SubTask *WFComplexClientTask<REQ, RESP, CTX>::done()
|
||||
}
|
||||
else if (this->state == WFT_STATE_SYS_ERROR)
|
||||
{
|
||||
RouteManager::notify_unavailable(route_result_.cookie, this->target);
|
||||
if (this->target)
|
||||
{
|
||||
RouteManager::notify_unavailable(route_result_.cookie,
|
||||
this->target);
|
||||
}
|
||||
|
||||
UpstreamManager::notify_unavailable(upstream_result_.cookie);
|
||||
// 5. complex task failed: retry
|
||||
if (retry_times_ < retry_max_)
|
||||
|
||||
Reference in New Issue
Block a user