mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix a missing unlock on ingress sandbox failure
Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
9054ac2b48
commit
f98cfa5597
1 changed files with 1 additions and 0 deletions
|
@ -770,6 +770,7 @@ func (c *controller) NewSandbox(containerID string, options ...SandboxOption) (s
|
|||
|
||||
c.Lock()
|
||||
if sb.ingress && c.ingressSandbox != nil {
|
||||
c.Unlock()
|
||||
return nil, fmt.Errorf("ingress sandbox already present")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue