Avoid duplicate calls to runner#destroy
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
parent
939cd0b734
commit
0a7762c664
|
@ -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