Merge pull request #33843 from moypray/exit
Set unpaused state when receiving 'stateExit' event
This commit is contained in:
commit
f8f1a3ade9
1 changed files with 2 additions and 0 deletions
|
@ -278,6 +278,7 @@ func (s *State) SetRunning(pid int, initial bool) {
|
|||
s.ErrorMsg = ""
|
||||
s.Running = true
|
||||
s.Restarting = false
|
||||
s.Paused = false
|
||||
s.ExitCodeValue = 0
|
||||
s.Pid = pid
|
||||
if initial {
|
||||
|
@ -304,6 +305,7 @@ func (s *State) SetRestarting(exitStatus *ExitStatus) {
|
|||
// all the checks in docker around rm/stop/etc
|
||||
s.Running = true
|
||||
s.Restarting = true
|
||||
s.Paused = false
|
||||
s.Pid = 0
|
||||
s.FinishedAt = time.Now().UTC()
|
||||
s.setFromExitStatus(exitStatus)
|
||||
|
|
Loading…
Add table
Reference in a new issue