1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

move defer statement for readability

Signed-off-by: mqliang <mqliang.zju@gmail.com>
This commit is contained in:
mqliang 2015-11-11 11:28:23 +08:00
parent 6f2c6111d4
commit d71eeb1c05

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()
}()