diff --git a/common/task/task.go b/common/task/task.go index b2bb7cf..d37d9e7 100644 --- a/common/task/task.go +++ b/common/task/task.go @@ -88,7 +88,7 @@ func (g *Group) RunContextList(contextList []context.Context) error { selectedContext, upstreamErr := common.SelectContext(append([]context.Context{taskCancelContext}, contextList...)) - if selectedContext == 0 { + if selectedContext != 0 { taskCancel(upstreamErr) }