Merge pull request #2169 from mheon/ensure_wait_doesnot_hang

Ensure that wait exits on state transition
This commit is contained in:
OpenShift Merge Robot
2019-01-16 17:38:41 +01:00
committed by GitHub

View File

@ -540,7 +540,7 @@ func (c *Container) isStopped() (bool, error) {
if err != nil {
return true, err
}
return (c.state.State == ContainerStateStopped || c.state.State == ContainerStateExited), nil
return (c.state.State != ContainerStateRunning && c.state.State != ContainerStatePaused), nil
}
// save container state to the database