Merge pull request #1814 from liubin/fix/1804-select-sandbox-ctx

[backport]runtime: use s.ctx instead ctx for checking cancellation
This commit is contained in:
Tim Zhang
2021-05-07 19:43:14 +08:00
committed by GitHub

View File

@@ -142,7 +142,7 @@ func watchOOMEvents(ctx context.Context, s *service) {
for {
select {
case <-ctx.Done():
case <-s.ctx.Done():
return
default:
containerID, err := s.sandbox.GetOOMEvent(ctx)