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:
		
							parent
							
								
									a2afb2b1e3
								
							
						
					
					
						commit
						c4a00d549d
					
				
					 3 changed files with 18 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue