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

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()
}
}