kill all processes correctly for micro kill command (#1633)

This commit is contained in:
Dominic Wong
2020-05-13 18:36:45 +01:00
committed by GitHub
parent 09d1450d7d
commit 05858b746c
2 changed files with 5 additions and 13 deletions

View File

@@ -536,7 +536,7 @@ func (r *runtime) Delete(s *Service, opts ...DeleteOption) error {
}
if s, ok := r.services[serviceKey(s)]; ok {
// check if running
if s.Running() {
if !s.Running() {
delete(r.services, s.key())
return nil
}