Skip to content

Commit 00f5ffa

Browse files
authored
Merge pull request #4929 from fuweid/cherry-pick-1.4-846cb963c
[release/1.4] runtime/v2: should use defer ctx to cleanup
2 parents ed8ec97 + b73052d commit 00f5ffa

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
@@ -159,7 +159,7 @@ func (m *TaskManager) Create(ctx context.Context, id string, opts runtime.Create
159159
defer cancel()
160160
_, errShim := shim.Delete(dctx)
161161
if errShim != nil {
162-
shim.Shutdown(ctx)
162+
shim.Shutdown(dctx)
163163
shim.Close()
164164
}
165165
}

0 commit comments

Comments
 (0)