Merge pull request #2267 from tedyu/runner-destroy
Avoid duplicate calls to runner#destroy
This commit is contained in:
commit
4e6d8a0fb9
|
@ -349,7 +349,9 @@ func (r *runner) run(config *specs.Process) (int, error) {
|
|||
if detach {
|
||||
return 0, nil
|
||||
}
|
||||
r.destroy()
|
||||
if err == nil {
|
||||
r.destroy()
|
||||
}
|
||||
return status, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue