Merge pull request #2267 from tedyu/runner-destroy

Avoid duplicate calls to runner#destroy
This commit is contained in:
Michael Crosby
2020-03-24 12:10:56 -04:00
committed by GitHub
+3 -1
View File
@@ -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
}