mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #1700 from aboch/clr
Sandbox.SetKey() should not reset the osl sandbox on failure
This commit is contained in:
commit
630b7a6b41
1 changed files with 0 additions and 7 deletions
|
@ -644,13 +644,6 @@ func (sb *sandbox) SetKey(basePath string) error {
|
||||||
sb.Lock()
|
sb.Lock()
|
||||||
sb.osSbox = osSbox
|
sb.osSbox = osSbox
|
||||||
sb.Unlock()
|
sb.Unlock()
|
||||||
defer func() {
|
|
||||||
if err != nil {
|
|
||||||
sb.Lock()
|
|
||||||
sb.osSbox = nil
|
|
||||||
sb.Unlock()
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
|
|
||||||
// If the resolver was setup before stop it and set it up in the
|
// If the resolver was setup before stop it and set it up in the
|
||||||
// new osl sandbox.
|
// new osl sandbox.
|
||||||
|
|
Loading…
Add table
Reference in a new issue