Merge pull request #4923 from fuweid/fix-wrong-context

runtime/v2: should use defer ctx to cleanup
This commit is contained in:
Derek McGowan 2021-01-11 15:34:47 -08:00 committed by GitHub
commit 6bf5650450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ func (m *TaskManager) Create(ctx context.Context, id string, opts runtime.Create
defer cancel()
_, errShim := shim.Delete(dctx)
if errShim != nil {
shim.Shutdown(ctx)
shim.Shutdown(dctx)
shim.Close()
}
}