Merge pull request #17894 from mqliang/deferMove

move defer statement for readability
This commit is contained in:
Alexander Morozov 2015-11-11 14:03:48 -08:00
commit 6c82fba2b3
1 changed files with 1 additions and 1 deletions

View File

@ -136,8 +136,8 @@ func (m *containerMonitor) Start() error {
defer func() {
if afterRun {
m.container.Lock()
m.container.setStopped(&exitStatus)
defer m.container.Unlock()
m.container.setStopped(&exitStatus)
}
m.Close()
}()