Signed-off-by: mqliang <mqliang.zju@gmail.com>
| ... | ... |
@@ -136,8 +136,8 @@ func (m *containerMonitor) Start() error {
|
| 136 | 136 |
defer func() {
|
| 137 | 137 |
if afterRun {
|
| 138 | 138 |
m.container.Lock() |
| 139 |
- m.container.setStopped(&exitStatus) |
|
| 140 | 139 |
defer m.container.Unlock() |
| 140 |
+ m.container.setStopped(&exitStatus) |
|
| 141 | 141 |
} |
| 142 | 142 |
m.Close() |
| 143 | 143 |
}() |