mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
Merge pull request #2795 from pnasrat/docker-testmultipleattachrestart-race
Lock state before we modify.
This commit is contained in:
@@ -1300,7 +1300,9 @@ func (container *Container) monitor() {
|
||||
}
|
||||
|
||||
// Report status back
|
||||
container.State.Lock()
|
||||
container.State.setStopped(exitCode)
|
||||
container.State.Unlock()
|
||||
|
||||
// Release the lock
|
||||
close(container.waitLock)
|
||||
|
||||
Reference in New Issue
Block a user