Implement proper shutdown logic

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2015-12-04 13:31:17 -08:00
parent a10aa91051
commit c10b3cde9f
6 changed files with 67 additions and 20 deletions

View File

@@ -15,6 +15,7 @@ func (h *DeleteEvent) Handle(e *Event) error {
logrus.WithField("error", err).Error("containerd: deleting container")
}
ContainersCounter.Dec(1)
h.s.containerGroup.Done()
}
return nil
}