mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Merge pull request #2169 from mheon/ensure_wait_doesnot_hang
Ensure that wait exits on state transition
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user