1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Honor the restarting state in Stop

Signed-off-by: Michael Crosby <michael@docker.com>
This commit is contained in:
Michael Crosby 2014-08-11 11:35:18 -07:00
parent a2afb2b1e3
commit c4a00d549d
3 changed files with 18 additions and 10 deletions

View file

@ -116,16 +116,15 @@ func (m *containerMonitor) Start() error {
time.Sleep(time.Duration(m.timeIncrement) * time.Millisecond)
continue
} else {
// we still wait to set the state as stopped and ensure that the locks were released
m.container.State.SetStopped(exitStatus)
m.resetContainer()
}
break
}
m.container.State.SetStopped(exitStatus)
m.resetContainer()
return err
}