Skip to content

Commit 49f5dfd

Browse files
committed
Fix "Fix task cancel context"
1 parent 96a05f9 commit 49f5dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/task/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (g *Group) RunContextList(contextList []context.Context) error {
8888

8989
selectedContext, upstreamErr := common.SelectContext(append([]context.Context{taskCancelContext}, contextList...))
9090

91-
if selectedContext == 0 {
91+
if selectedContext != 0 {
9292
taskCancel(upstreamErr)
9393
}
9494

0 commit comments

Comments
 (0)