Skip to content

Commit 6bf5650

Browse files
authored
Merge pull request #4923 from fuweid/fix-wrong-context
runtime/v2: should use defer ctx to cleanup
2 parents 04df60d + 846cb96 commit 6bf5650

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (m *TaskManager) Create(ctx context.Context, id string, opts runtime.Create
155155
defer cancel()
156156
_, errShim := shim.Delete(dctx)
157157
if errShim != nil {
158-
shim.Shutdown(ctx)
158+
shim.Shutdown(dctx)
159159
shim.Close()
160160
}
161161
}

0 commit comments

Comments
 (0)